]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/classes/Ostatus_profile.php
Support more author types on RSS
[quix0rs-gnu-social.git] / 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);
     }