Merge pull request #1255 from annando/twitter-extid

Twitter: Only search for comments with extid to avoid problems with mirrored posts
pull/1256/head
Tobias Diekershoff 2022-06-02 15:21:41 +02:00 committed by GitHub
commit 169081d503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1761,7 +1761,7 @@ function twitter_createpost(App $a, $uid, $post, array $self, $create_user, $onl
$item = Post::selectFirst(['uri'], ['uri' => $thr_parent, 'uid' => $uid]); $item = Post::selectFirst(['uri'], ['uri' => $thr_parent, 'uid' => $uid]);
if (!DBA::isResult($item)) { if (!DBA::isResult($item)) {
$item = Post::selectFirst(['uri'], ['extid' => $thr_parent, 'uid' => $uid]); $item = Post::selectFirst(['uri'], ['extid' => $thr_parent, 'uid' => $uid, 'gravity' => GRAVITY_COMMENT]);
} }
if (DBA::isResult($item)) { if (DBA::isResult($item)) {