summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-09 18:32:52 -0800
committerBrion Vibber <brion@pobox.com>2010-02-09 18:32:52 -0800
commit8449256817f5a2bd7a7cac6bc04e4cb477d7dc49 (patch)
treea975ae92a53a0cb23291f9e97f61306361db73fa /lib
parent5509f923ea48aecd1422aa1a4173fc85938e2b74 (diff)
OStatus partial support for group subscriptions:
* detection of group feeds is currently a nasty hack based on presence of '/groups/' in URL -- should use some property on the feed? * listing for the remote group is kinda cruddy; needs to be named more cleanly * still need to establish per-author profiles (easier once we have the updated Atom code in) * group delivery probably not right yet * saving of group messages still triggering some weird behavior Added support for since_id and max_id on group timeline feeds as a free extra. Enjoy!
Diffstat (limited to 'lib')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 00c21aeb2..a07fe49e3 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -697,7 +697,7 @@ function common_group_link($sender_id, $nickname)
{
$sender = Profile::staticGet($sender_id);
$group = User_group::getForNickname($nickname);
- if ($group && $sender->isMember($group)) {
+ if ($sender && $group && $sender->isMember($group)) {
$attrs = array('href' => $group->permalink(),
'class' => 'url');
if (!empty($group->fullname)) {