]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Make Mastodon retweets parse correctly.
authorRoger Braun <roger@rogerbraun.net>
Sun, 4 Dec 2016 15:20:38 +0000 (16:20 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 5 Dec 2016 17:24:55 +0000 (18:24 +0100)
lib/activity.php

index b733ff97aaee568c040341d05e398e8955a9ba92..578a843c32be37e38c31fbf54d7ee59d56da2ba5 100644 (file)
@@ -180,7 +180,7 @@ class Activity
             foreach ($objectEls as $objectEl) {
                 // Special case for embedded activities
                 $objectType = ActivityUtils::childContent($objectEl, self::OBJECTTYPE, self::SPEC);
-                if (!empty($objectType) && $objectType == ActivityObject::ACTIVITY) {
+                if ((!empty($objectType) && $objectType == ActivityObject::ACTIVITY) || $this->verb == ActivityVerb::SHARE) {
                     $this->objects[] = new Activity($objectEl);
                 } else {
                     $this->objects[] = new ActivityObject($objectEl);