From: Michael Date: Mon, 11 Jan 2021 06:14:22 +0000 (+0000) Subject: Twitter: Set the direction for imported posts X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0417ee39fde0be2f5489ce9ae6c93fb00d815c27;p=friendica-addons.git Twitter: Set the direction for imported posts --- diff --git a/twitter/twitter.php b/twitter/twitter.php index 68ca7faf..fc5022a9 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -1584,6 +1584,7 @@ function twitter_createpost(App $a, $uid, $post, array $self, $create_user, $onl $postarray['uri'] = "twitter::" . $post->id_str; $postarray['protocol'] = Conversation::PARCEL_TWITTER; $postarray['source'] = json_encode($post); + $postarray['direction'] = Conversation::PULL; if (empty($uriid)) { $uriid = $postarray['uri-id'] = ItemURI::insert(['uri' => $postarray['uri']]); @@ -1724,6 +1725,7 @@ function twitter_createpost(App $a, $uid, $post, array $self, $create_user, $onl $postarray['thr-parent'] = $retweet['uri']; } else { $retweet['source'] = $postarray['source']; + $retweet['direction'] = $postarray['direction']; $retweet['private'] = $postarray['private']; $retweet['allow_cid'] = $postarray['allow_cid']; $retweet['contact-id'] = $postarray['contact-id'];