Not only local groups should be added to group inbox notificiation table
This commit is contained in:
		@@ -1596,11 +1596,10 @@ class Notice extends Managed_DataObject
 | 
				
			|||||||
    function saveAttention(Profile $target, $reason=null)
 | 
					    function saveAttention(Profile $target, $reason=null)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        if ($target->isGroup()) {
 | 
					        if ($target->isGroup()) {
 | 
				
			||||||
            // FIXME: Make sure we check that users are in the groups they send to!
 | 
					            // FIXME: Make sure we check (for both local and remote) 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
 | 
					            // legacy notification method, will still be in use for quite a while I think
 | 
				
			||||||
            $this->addToGroupInbox($target->getGroup());
 | 
					            $this->addToGroupInbox($target->getGroup());
 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            if ($target->hasBlocked($this->getProfile())) {
 | 
					            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.");
 | 
					                common_log(LOG_INFO, "Not saving reply to profile {$target->id} ($uri) from sender {$sender->id} because of a block.");
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user