[twitter] Simplify remote self check

- Adresses https://github.com/friendica/friendica/issues/9252#issuecomment-730851818
This commit is contained in:
Hypolite Petovan 2020-11-20 08:55:29 -05:00
parent 019bcb4be4
commit 647823769b
1 changed files with 1 additions and 1 deletions

View File

@ -1919,7 +1919,7 @@ function twitter_fetchhometimeline(App $a, $uid)
$notify = false;
if (($postarray['uri'] == $postarray['thr-parent']) && ($postarray['author-link'] == $postarray['owner-link'])) {
if (empty($postarray['thr-parent'])) {
$contact = DBA::selectFirst('contact', [], ['id' => $postarray['contact-id'], 'self' => false]);
if (DBA::isResult($contact)) {
$notify = Item::isRemoteSelf($contact, $postarray);