Merge branch 'master' into 'master'

Allow GNU social master code to receive Mastodon boosts

See merge request gnu/gnu-social!153
This commit is contained in:
mmn 2017-12-17 17:24:53 +00:00
commit 69bb81556f

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