From: Sebastian Date: Fri, 25 Aug 2017 11:35:02 +0000 (+0000) Subject: Fixed code so that GNU social can receive Mastodon boosts (from GNU social nightly... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a6e33bdd6a9c44e5fd06af3c3973c0112792d743;p=quix0rs-gnu-social.git Fixed code so that GNU social can receive Mastodon boosts (from GNU social nightly commit: https://git.gnu.io/gnu/gnu-social/commit/c741d1a52a8256336632d090fa5ffd7d2cf549a9) --- diff --git a/lib/activity.php b/lib/activity.php index 49f7603d80..a52f29e9ca 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);