]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Support more author types on RSS
authorStephen Paul Weber <singpolyma@singpolyma.net>
Tue, 27 Oct 2015 18:43:57 +0000 (18:43 +0000)
committerStephen Paul Weber <singpolyma@singpolyma.net>
Tue, 27 Oct 2015 18:43:57 +0000 (18:43 +0000)
Specifically, any ActivityStreams or ATOM namespaces being used on
an rss channel.

plugins/OStatus/classes/Ostatus_profile.php

index 1c4428b16df7ed17e1e90949c9d452ef9f5f383e..da7a4b424475087ac251c553fa9f8c443c33d20e 100644 (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);
     }