]> git.mxchange.org Git - friendica-addons.git/commitdiff
Merge pull request #505 from MrPetovan/task/4116-move-twitteroauth-to-composer
authorMichael Vogel <icarus@dabo.de>
Sun, 28 Jan 2018 18:19:03 +0000 (19:19 +0100)
committerGitHub <noreply@github.com>
Sun, 28 Jan 2018 18:19:03 +0000 (19:19 +0100)
Move TwitterOAuth to composer Part 1: Twitter

1  2 
twitter/twitter.php

index d625dfa5bae8f5ef7baa76d807e62af8019e9143,5440f524ac94f49675732949cf63fa5e08b10ac0..7e38bd4310d5e852d02e4c517ba297746c62552a
@@@ -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);