From 80191b56dfe82e1a11ea06502bdebd650294f20e Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Wed, 29 Dec 2010 15:33:57 -0800 Subject: [PATCH] Show in Atom group notice feed Version 0.9.6 and below of StatusNet assume anything in is a Person. So, we include an element, which will be checked first by those versions of the code, only for group feeds. At some point we'll take this out, but it's useful for now. --- lib/atomgroupnoticefeed.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/atomgroupnoticefeed.php b/lib/atomgroupnoticefeed.php index 5b6fcf4295..4e7f992662 100644 --- a/lib/atomgroupnoticefeed.php +++ b/lib/atomgroupnoticefeed.php @@ -85,9 +85,14 @@ class AtomGroupNoticeFeed extends AtomNoticeFeed $this->setId($self); $this->setSelfLink($self); + // For groups, we generate an author _AND_ an + // Versions of StatusNet under 0.9.7 treat as a person + // XXX: remove this workaround in future versions + $ao = ActivityObject::fromGroup($group); - $this->addAuthorRaw($ao->asString('author')); + $this->addAuthorRaw($ao->asString('author'). + $ao->asString('activity:subject')); $this->addLink($group->homeUrl()); }