From 3c18a3eedd118c37d7b0afde5b94f0e7d83b9158 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 9 Dec 2020 05:55:10 +0000 Subject: [PATCH] Simplified code --- twitter/twitter.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/twitter/twitter.php b/twitter/twitter.php index 278989ad..1f7328ec 100644 --- a/twitter/twitter.php +++ b/twitter/twitter.php @@ -1939,10 +1939,8 @@ function twitter_fetchhometimeline(App $a, $uid) if (empty($postarray['thr-parent'])) { $contact = DBA::selectFirst('contact', [], ['id' => $postarray['contact-id'], 'self' => false]); - if (DBA::isResult($contact)) { - if (Item::isRemoteSelf($contact, $postarray)) { - $notify = PRIORITY_MEDIUM; - } + if (DBA::isResult($contact) && Item::isRemoteSelf($contact, $postarray)) { + $notify = PRIORITY_MEDIUM; } }