mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 07:43:41 +00:00
Issue 9642: Twitter: Fix posting loop
This commit is contained in:
parent
e6becaacd6
commit
e0c02c9eb8
1 changed files with 2 additions and 2 deletions
|
@ -403,7 +403,7 @@ function twitter_hook_fork(App $a, array &$b)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($post['app'] == 'Twitter') {
|
if (substr($post['app'], 0, 7) == 'Twitter') {
|
||||||
$b['execute'] = false;
|
$b['execute'] = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1006,7 +1006,7 @@ function twitter_do_mirrorpost(App $a, $uid, $post)
|
||||||
{
|
{
|
||||||
$datarray['api_source'] = true;
|
$datarray['api_source'] = true;
|
||||||
$datarray['profile_uid'] = $uid;
|
$datarray['profile_uid'] = $uid;
|
||||||
$datarray['extid'] = Protocol::TWITTER . ':' . $post->id;
|
$datarray['extid'] = 'twitter::' . $post->id;
|
||||||
$datarray['protocol'] = Conversation::PARCEL_TWITTER;
|
$datarray['protocol'] = Conversation::PARCEL_TWITTER;
|
||||||
$datarray['source'] = json_encode($post);
|
$datarray['source'] = json_encode($post);
|
||||||
$datarray['title'] = '';
|
$datarray['title'] = '';
|
||||||
|
|
Loading…
Reference in a new issue