]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #4931 from annando/no-ignored
authorHypolite Petovan <mrpetovan@gmail.com>
Wed, 25 Apr 2018 16:07:00 +0000 (12:07 -0400)
committerGitHub <noreply@github.com>
Wed, 25 Apr 2018 16:07:00 +0000 (12:07 -0400)
Don't distribute for ignored contacts

src/Model/Item.php

index 8125c4ac7126b341717ccd7b9f6a1b58b4397a50..c16281ae3ea204c5a875e5926936d64e5b9ca55f 100644 (file)
@@ -863,7 +863,7 @@ class Item extends BaseObject
 
                unset($item['id']);
 
-               $condition = ["`nurl` IN (SELECT `nurl` FROM `contact` WHERE `id` = ?) AND `uid` != 0 AND NOT `blocked` AND `rel` IN (?, ?)",
+               $condition = ["`nurl` IN (SELECT `nurl` FROM `contact` WHERE `id` = ?) AND `uid` != 0 AND NOT `blocked` AND NOT `readonly` AND `rel` IN (?, ?)",
                        $parent['owner-id'], CONTACT_IS_SHARING,  CONTACT_IS_FRIEND];
                $contacts = dba::select('contact', ['uid'], $condition);
                while ($contact = dba::fetch($contacts)) {