From 67801a556610f89a60106c0074c42947967f3adf Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 9 Jan 2016 15:14:38 +0100 Subject: [PATCH] Not only local groups should be added to group inbox notificiation table --- classes/Notice.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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."); -- 2.39.5