Fixed code so that GNU social can receive Mastodon boosts (from GNU social nightly commit: c741d1a52a)

This commit is contained in:
Sebastian 2017-08-25 11:35:02 +00:00
parent 50f9f23ff1
commit a6e33bdd6a
1 changed files with 1 additions and 1 deletions

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