From: Michael Date: Wed, 9 Dec 2020 05:55:10 +0000 (+0000) Subject: Simplified code X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3c18a3eedd118c37d7b0afde5b94f0e7d83b9158;p=friendica-addons.git Simplified code --- 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; } }