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:
commit
69bb81556f
@ -180,7 +180,7 @@ class Activity
|
|||||||
foreach ($objectEls as $objectEl) {
|
foreach ($objectEls as $objectEl) {
|
||||||
// Special case for embedded activities
|
// Special case for embedded activities
|
||||||
$objectType = ActivityUtils::childContent($objectEl, self::OBJECTTYPE, self::SPEC);
|
$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);
|
$this->objects[] = new Activity($objectEl);
|
||||||
} else {
|
} else {
|
||||||
$this->objects[] = new ActivityObject($objectEl);
|
$this->objects[] = new ActivityObject($objectEl);
|
||||||
|
Loading…
Reference in New Issue
Block a user