Merge pull request #1067 from annando/direction
Twitter: Set the direction for imported postspull/1071/head
commit
74ae7145cf
|
@ -1584,6 +1584,7 @@ function twitter_createpost(App $a, $uid, $post, array $self, $create_user, $onl
|
||||||
$postarray['uri'] = "twitter::" . $post->id_str;
|
$postarray['uri'] = "twitter::" . $post->id_str;
|
||||||
$postarray['protocol'] = Conversation::PARCEL_TWITTER;
|
$postarray['protocol'] = Conversation::PARCEL_TWITTER;
|
||||||
$postarray['source'] = json_encode($post);
|
$postarray['source'] = json_encode($post);
|
||||||
|
$postarray['direction'] = Conversation::PULL;
|
||||||
|
|
||||||
if (empty($uriid)) {
|
if (empty($uriid)) {
|
||||||
$uriid = $postarray['uri-id'] = ItemURI::insert(['uri' => $postarray['uri']]);
|
$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'];
|
$postarray['thr-parent'] = $retweet['uri'];
|
||||||
} else {
|
} else {
|
||||||
$retweet['source'] = $postarray['source'];
|
$retweet['source'] = $postarray['source'];
|
||||||
|
$retweet['direction'] = $postarray['direction'];
|
||||||
$retweet['private'] = $postarray['private'];
|
$retweet['private'] = $postarray['private'];
|
||||||
$retweet['allow_cid'] = $postarray['allow_cid'];
|
$retweet['allow_cid'] = $postarray['allow_cid'];
|
||||||
$retweet['contact-id'] = $postarray['contact-id'];
|
$retweet['contact-id'] = $postarray['contact-id'];
|
||||||
|
|
Loading…
Reference in New Issue