summaryrefslogtreecommitdiff
path: root/lib/atomgroupnoticefeed.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-06-26 10:17:36 -0400
committerBrion Vibber <brion@pobox.com>2010-06-26 10:17:36 -0400
commit696e4ba393c658d5b2e1fe46e1389bd7b2cfdb34 (patch)
tree45c4f1512599175afea67f8a68e1b3ad66cace97 /lib/atomgroupnoticefeed.php
parent72e486a3226c9101f33bd86f953dbb9650c19fd1 (diff)
parentd9e56e15cc3174093fc994e524d1d9cf402ae8a3 (diff)
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
Conflicts: plugins/OpenID/openidserver.php (cleaned up mismatched comment)
Diffstat (limited to 'lib/atomgroupnoticefeed.php')
-rw-r--r--lib/atomgroupnoticefeed.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/atomgroupnoticefeed.php b/lib/atomgroupnoticefeed.php
index c7c36af82..39a1fd456 100644
--- a/lib/atomgroupnoticefeed.php
+++ b/lib/atomgroupnoticefeed.php
@@ -96,4 +96,23 @@ class AtomGroupNoticeFeed extends AtomNoticeFeed
return $this->group;
}
+ function initFeed()
+ {
+ parent::initFeed();
+
+ $attrs = array();
+
+ if (!empty($this->cur)) {
+ $attrs['member'] = $this->cur->isMember($this->group)
+ ? 'true' : 'false';
+ $attrs['blocked'] = Group_block::isBlocked(
+ $this->group,
+ $this->cur->getProfile()
+ ) ? 'true' : 'false';
+ }
+
+ $attrs['member_count'] = $this->group->getMemberCount();
+
+ $this->element('statusnet:group_info', $attrs, null);
+ }
}