]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed code so that GNU social can receive Mastodon boosts (from GNU social nightly...
authorSebastian <sen@tchnics.de>
Fri, 25 Aug 2017 11:35:02 +0000 (11:35 +0000)
committerSebastian <sen@tchnics.de>
Fri, 25 Aug 2017 11:35:02 +0000 (11:35 +0000)
lib/activity.php

index 49f7603d80362e7edb932f1a2bf57f8fce579786..a52f29e9ca64e06bdf317f995f4c597acc20559b 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);