mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 09:23:39 +00:00
Twitter: Only search for comments with extid to avoid problems with mirrored posts
This commit is contained in:
parent
ffe62a2577
commit
c71e29a772
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in a new issue