Support more author types on RSS

Specifically, any ActivityStreams or ATOM namespaces being used on
an rss channel.
This commit is contained in:
Stephen Paul Weber 2015-10-27 18:43:57 +00:00
parent 0ba53edd96
commit e1de6e0aa9
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}