[twitter] Simplify remote self check
- Adresses https://github.com/friendica/friendica/issues/9252#issuecomment-730851818
This commit is contained in:
parent
019bcb4be4
commit
647823769b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user