]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
whoGets() method for Notice
authorEvan Prodromou <evan@status.net>
Sat, 9 Jan 2010 21:55:54 +0000 (13:55 -0800)
committerEvan Prodromou <evan@status.net>
Sat, 9 Jan 2010 21:55:54 +0000 (13:55 -0800)
classes/Notice.php

index 8783912e89c88de9420c26ef95e6452cad031e79..6284b8ca518947c16c37560a9b61c982ac928614 100644 (file)
@@ -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;