Give Webfinger response to group queries

This commit is contained in:
Mikael Nordfeldth
2016-06-25 20:13:19 +02:00
parent 3d6e25ee5f
commit d10ce6ac7c
3 changed files with 63 additions and 29 deletions

View File

@@ -1315,6 +1315,12 @@ class OStatusPlugin extends Plugin
{
if ($target->getObjectType() === ActivityObject::PERSON) {
$this->addWebFingerPersonLinks($xrd, $target);
} elseif ($target->getObjectType() === ActivityObject::GROUP) {
$xrd->links[] = new XML_XRD_Element_Link(Discovery::UPDATESFROM,
common_local_url('ApiTimelineGroup',
array('id' => $target->getGroup()->getID(), 'format' => 'atom')),
'application/atom+xml');
}
// Salmon