From: Roger Braun Date: Sun, 4 Dec 2016 15:20:38 +0000 (+0100) Subject: Make Mastodon retweets parse correctly. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c741d1a52a8256336632d090fa5ffd7d2cf549a9;p=quix0rs-gnu-social.git Make Mastodon retweets parse correctly. --- diff --git a/lib/activity.php b/lib/activity.php index b733ff97aa..578a843c32 100644 --- a/lib/activity.php +++ b/lib/activity.php @@ -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);