]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'correct-author-for-repeat' into 'master'
authormmn <mmn@hethane.se>
Thu, 5 Nov 2015 15:00:35 +0000 (15:00 +0000)
committermmn <mmn@hethane.se>
Thu, 5 Nov 2015 15:00:35 +0000 (15:00 +0000)
Markup correct author for a repeat

The original author is not the author of this entry, but of the original entry.

See merge request !51

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