pumpio, statusnet, tumblr, twitter, wordpress: Changed the way, shares are displayed

twitter: Look for the entities when importing tweets.
This commit is contained in:
Michael Vogel 2014-01-26 09:53:12 +01:00
parent e28b559bfc
commit bbc8a1328d
7 changed files with 178 additions and 29 deletions

View file

@ -764,7 +764,10 @@ function fbpost_post_hook(&$a,&$b) {
);
}
else {
if(! $likes) {
// Only add to queue if its a toplevel post.
// Sometimes posts are accepted from facebook although it telling an error
// This leads to endless comment flooding.
if(! $likes AND $toplevel) {
$r = q("SELECT `id` FROM `contact` WHERE `uid` = %d AND `self`", intval($b['uid']));
if (count($r))
$a->contact = $r[0]["id"];