]> git.mxchange.org Git - friendica-addons.git/commitdiff
Passthrough some more fields
authorMichael <heluecht@pirati.ca>
Sat, 10 Dec 2016 11:15:37 +0000 (11:15 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 10 Dec 2016 11:15:37 +0000 (11:15 +0000)
twitter/twitter.php

index 0202a30b6cc3ebad97657f7a6e166e2fe041fb0a..e862fc7ac1a4f0054d915279d32c21a226268349 100644 (file)
@@ -1357,6 +1357,7 @@ function twitter_createpost($a, $uid, $post, $self, $create_user, $only_existing
        $postarray['uri'] = "twitter::".$post->id_str;
        $postarray['object'] = json_encode($post);
 
+       // Don't import our own comments
        $r = q("SELECT * FROM `item` WHERE `extid` = '%s' AND `uid` = %d LIMIT 1",
                        dbesc($postarray['uri']),
                        intval($uid)
@@ -1488,6 +1489,8 @@ function twitter_createpost($a, $uid, $post, $self, $create_user, $only_existing
                $retweet = twitter_createpost($a, $uid, $post->retweeted_status, $self, false, false, $noquote);
 
                $retweet['object'] = $postarray['object'];
+               $retweet['private'] = $postarray['private'];
+               $retweet['allow_cid'] = $postarray['allow_cid'];
                $retweet['contact-id'] = $postarray['contact-id'];
                $retweet['owner-name'] = $postarray['owner-name'];
                $retweet['owner-link'] = $postarray['owner-link'];