[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

View File

@ -1919,7 +1919,7 @@ function twitter_fetchhometimeline(App $a, $uid)
$notify = false; $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]); $contact = DBA::selectFirst('contact', [], ['id' => $postarray['contact-id'], 'self' => false]);
if (DBA::isResult($contact)) { if (DBA::isResult($contact)) {
$notify = Item::isRemoteSelf($contact, $postarray); $notify = Item::isRemoteSelf($contact, $postarray);