summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-09 13:55:54 -0800
committerEvan Prodromou <evan@status.net>2010-01-09 13:55:54 -0800
commit96e51dad4b9ff2208cfef2e578e4bc85a8937680 (patch)
tree5160bd9392ebd1e20b23535a78e9d93fca5a5944 /classes
parent5e81149e4773799b2dcf426987e6263b8841c5cc (diff)
whoGets() method for Notice
Diffstat (limited to 'classes')
-rw-r--r--classes/Notice.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 8783912e8..6284b8ca5 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;