mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 19:03:17 +00:00
Passthrough some more fields
This commit is contained in:
parent
02cbdc6dec
commit
cb4b8b5184
1 changed files with 3 additions and 0 deletions
|
@ -1357,6 +1357,7 @@ function twitter_createpost($a, $uid, $post, $self, $create_user, $only_existing
|
||||||
$postarray['uri'] = "twitter::".$post->id_str;
|
$postarray['uri'] = "twitter::".$post->id_str;
|
||||||
$postarray['object'] = json_encode($post);
|
$postarray['object'] = json_encode($post);
|
||||||
|
|
||||||
|
// Don't import our own comments
|
||||||
$r = q("SELECT * FROM `item` WHERE `extid` = '%s' AND `uid` = %d LIMIT 1",
|
$r = q("SELECT * FROM `item` WHERE `extid` = '%s' AND `uid` = %d LIMIT 1",
|
||||||
dbesc($postarray['uri']),
|
dbesc($postarray['uri']),
|
||||||
intval($uid)
|
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 = twitter_createpost($a, $uid, $post->retweeted_status, $self, false, false, $noquote);
|
||||||
|
|
||||||
$retweet['object'] = $postarray['object'];
|
$retweet['object'] = $postarray['object'];
|
||||||
|
$retweet['private'] = $postarray['private'];
|
||||||
|
$retweet['allow_cid'] = $postarray['allow_cid'];
|
||||||
$retweet['contact-id'] = $postarray['contact-id'];
|
$retweet['contact-id'] = $postarray['contact-id'];
|
||||||
$retweet['owner-name'] = $postarray['owner-name'];
|
$retweet['owner-name'] = $postarray['owner-name'];
|
||||||
$retweet['owner-link'] = $postarray['owner-link'];
|
$retweet['owner-link'] = $postarray['owner-link'];
|
||||||
|
|
Loading…
Reference in a new issue