From: Evan Prodromou Date: Wed, 29 Dec 2010 23:33:57 +0000 (-0800) Subject: Show in Atom group notice feed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=80191b56dfe82e1a11ea06502bdebd650294f20e;p=quix0rs-gnu-social.git 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. --- 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()); }