]> git.mxchange.org Git - friendica-addons.git/commitdiff
[twitter] Simplify remote self check
authorHypolite Petovan <hypolite@mrpetovan.com>
Fri, 20 Nov 2020 13:55:29 +0000 (08:55 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Fri, 20 Nov 2020 13:55:29 +0000 (08:55 -0500)
- Adresses https://github.com/friendica/friendica/issues/9252#issuecomment-730851818

twitter/twitter.php

index f70aa141b4656556f4add9683805e3efc215a4d4..4066bdec3b0df66464f8e12178f6376d776530c7 100644 (file)
@@ -1919,7 +1919,7 @@ function twitter_fetchhometimeline(App $a, $uid)
 
                        $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]);
                                if (DBA::isResult($contact)) {
                                        $notify = Item::isRemoteSelf($contact, $postarray);