whoGets() method for Notice
This commit is contained in:
		@@ -830,7 +830,7 @@ class Notice extends Memcached_DataObject
 | 
				
			|||||||
        return $ids;
 | 
					        return $ids;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    function addToInboxes()
 | 
					    function whoGets()
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $users = $this->getSubscribedUsers();
 | 
					        $users = $this->getSubscribedUsers();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -871,6 +871,13 @@ class Notice extends Memcached_DataObject
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        return $ni;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    function addToInboxes()
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $ni = $this->whoGets();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        Inbox::bulkInsert($this->id, array_keys($ni));
 | 
					        Inbox::bulkInsert($this->id, array_keys($ni));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user