From e0c02c9eb81bcee6d21eb57e17c9a427b082cd1d Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 12 Dec 2020 23:25:30 +0000 Subject: [PATCH] Issue 9642: Twitter: Fix posting loop --- twitter/twitter.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 1f7328ecc..52ff7ae48 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -403,7 +403,7 @@ function twitter_hook_fork(App $a, array &$b) return; } - if ($post['app'] == 'Twitter') { + if (substr($post['app'], 0, 7) == 'Twitter') { $b['execute'] = false; return; } @@ -1006,7 +1006,7 @@ function twitter_do_mirrorpost(App $a, $uid, $post) { $datarray['api_source'] = true; $datarray['profile_uid'] = $uid; - $datarray['extid'] = Protocol::TWITTER . ':' . $post->id; + $datarray['extid'] = 'twitter::' . $post->id; $datarray['protocol'] = Conversation::PARCEL_TWITTER; $datarray['source'] = json_encode($post); $datarray['title'] = '';