We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e1de6e0a authored by Stephen Paul Weber's avatar Stephen Paul Weber

Support more author types on RSS

Specifically, any ActivityStreams or ATOM namespaces being used on
an rss channel.
parent 0ba53edd
......@@ -1003,11 +1003,13 @@ class Ostatus_profile extends Managed_DataObject
}
}
$obj = ActivityUtils::getFeedAuthor($feedEl);
// @todo FIXME: We should check whether this feed has elements
// with different <author> or <dc:creator> elements, and... I dunno.
// Do something about that.
$obj = ActivityObject::fromRssChannel($feedEl);
if(empty($obj)) { $obj = ActivityObject::fromRssChannel($feedEl); }
return self::ensureActivityObjectProfile($obj, $hints);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment