summaryrefslogtreecommitdiff
path: root/classes/Notice.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-14 23:48:24 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-14 23:48:24 -0700
commit4dad3191f65512b04894377541c4a041221ed9a2 (patch)
treeb5714e21f0a2a04a1af7f1252fff923dbf411aed /classes/Notice.php
parent2f3c4f8812d389df40cf62b8967cf3e359ad5663 (diff)
parent1b6b00a6d05ad646a9137a872af8d8fdeeaf260f (diff)
Merge branch 'groupalias' into 0.8.x
Diffstat (limited to 'classes/Notice.php')
-rw-r--r--classes/Notice.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/Notice.php b/classes/Notice.php
index 78786b27d..68602b1f7 100644
--- a/classes/Notice.php
+++ b/classes/Notice.php
@@ -752,16 +752,16 @@ class Notice extends Memcached_DataObject
foreach (array_unique($match[1]) as $nickname) {
/* XXX: remote groups. */
- $group = User_group::staticGet('nickname', $nickname);
+ $group = User_group::getForNickname($nickname);
- if (!$group) {
+ if (empty($group)) {
continue;
}
// we automatically add a tag for every group name, too
$tag = Notice_tag::pkeyGet(array('tag' => common_canonical_tag($nickname),
- 'notice_id' => $this->id));
+ 'notice_id' => $this->id));
if (is_null($tag)) {
$this->saveTag($nickname);