From: Stephen Paul Weber Date: Tue, 27 Oct 2015 18:43:57 +0000 (+0000) Subject: Support more author types on RSS X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e1de6e0aa9bb130780b012eb8ab0c99c8f8a01a8;p=quix0rs-gnu-social.git Support more author types on RSS Specifically, any ActivityStreams or ATOM namespaces being used on an rss channel. --- diff --git a/plugins/OStatus/classes/Ostatus_profile.php b/plugins/OStatus/classes/Ostatus_profile.php index 1c4428b16d..da7a4b4244 100644 --- a/plugins/OStatus/classes/Ostatus_profile.php +++ b/plugins/OStatus/classes/Ostatus_profile.php @@ -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 or elements, and... I dunno. // Do something about that. - $obj = ActivityObject::fromRssChannel($feedEl); + if(empty($obj)) { $obj = ActivityObject::fromRssChannel($feedEl); } return self::ensureActivityObjectProfile($obj, $hints); }