From: Evan Prodromou Date: Sat, 9 Jan 2010 21:55:54 +0000 (-0800) Subject: whoGets() method for Notice X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=96e51dad4b9ff2208cfef2e578e4bc85a8937680;p=quix0rs-gnu-social.git whoGets() method for Notice --- diff --git a/classes/Notice.php b/classes/Notice.php index 8783912e89..6284b8ca51 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -830,7 +830,7 @@ class Notice extends Memcached_DataObject return $ids; } - function addToInboxes() + function whoGets() { $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)); return;