diff options
author | Brion Vibber <brion@pobox.com> | 2010-06-26 10:16:27 -0400 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-06-26 10:16:27 -0400 |
commit | d9e56e15cc3174093fc994e524d1d9cf402ae8a3 (patch) | |
tree | ba673d3417cca00b2db1e7d2c1bd7697f9712215 /lib/atomgroupnoticefeed.php | |
parent | b66709215309126969104ad114874360785f3d57 (diff) | |
parent | 9eb5a976b03fae6bd1e1fce6abfe4a6c7964d1ae (diff) |
Merge branch 'master' into testing
Diffstat (limited to 'lib/atomgroupnoticefeed.php')
-rw-r--r-- | lib/atomgroupnoticefeed.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/atomgroupnoticefeed.php b/lib/atomgroupnoticefeed.php index 7934a4f9e..761df587c 100644 --- a/lib/atomgroupnoticefeed.php +++ b/lib/atomgroupnoticefeed.php @@ -93,4 +93,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); + } } |