From: Mikael Nordfeldth Date: Sat, 9 Jan 2016 14:14:38 +0000 (+0100) Subject: Not only local groups should be added to group inbox notificiation table X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=67801a556610f89a60106c0074c42947967f3adf;p=quix0rs-gnu-social.git Not only local groups should be added to group inbox notificiation table --- diff --git a/classes/Notice.php b/classes/Notice.php index 3fc93d4930..60c821ae5d 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -1596,11 +1596,10 @@ class Notice extends Managed_DataObject function saveAttention(Profile $target, $reason=null) { if ($target->isGroup()) { - // FIXME: Make sure we check that users are in the groups they send to! - if ($target->getGroup()->isLocal()) { - // legacy notification method, will still be in use for quite a while I think - $this->addToGroupInbox($target->getGroup()); - } + // FIXME: Make sure we check (for both local and remote) users are in the groups they send to! + + // legacy notification method, will still be in use for quite a while I think + $this->addToGroupInbox($target->getGroup()); } else { if ($target->hasBlocked($this->getProfile())) { common_log(LOG_INFO, "Not saving reply to profile {$target->id} ($uri) from sender {$sender->id} because of a block.");