]> git.mxchange.org Git - friendica-addons.git/commitdiff
Simplified code
authorMichael <heluecht@pirati.ca>
Wed, 9 Dec 2020 05:55:10 +0000 (05:55 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 9 Dec 2020 05:55:10 +0000 (05:55 +0000)
twitter/twitter.php

index 278989add495519426a63846e554dcc1b78407bc..1f7328ecc955f96f8712502c76461d6e76d06c2a 100644 (file)
@@ -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;
                                }
                        }