From: Michael Vogel Date: Sun, 28 Jan 2018 18:19:03 +0000 (+0100) Subject: Merge pull request #505 from MrPetovan/task/4116-move-twitteroauth-to-composer X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ffa36da2c95867dec4acb6a3d4a9975bf65140d3;p=friendica-addons.git Merge pull request #505 from MrPetovan/task/4116-move-twitteroauth-to-composer Move TwitterOAuth to composer Part 1: Twitter --- ffa36da2c95867dec4acb6a3d4a9975bf65140d3 diff --cc twitter/twitter.php index d625dfa5,5440f524..7e38bd43 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@@ -1655,10 -1639,11 +1640,11 @@@ function twitter_fetchparentposts(App $ foreach ($posts as $post) { $postarray = twitter_createpost($a, $uid, $post, $self, false, false, false); - if (trim($postarray['body']) == "") + if (trim($postarray['body']) == "") { continue; + } - $item = item_store($postarray); + $item = Item::insert($postarray); $postarray["id"] = $item; logger('twitter_fetchparentpost: User ' . $self["nick"] . ' posted parent timeline item ' . $item);