Merge remote-tracking branch 'mike/master' into dev
This commit is contained in:
commit
671b6d2eda
@ -411,6 +411,11 @@ class Activity {
|
||||
$ret['type'] = 'Tombstone';
|
||||
$ret['formerType'] = self::activity_obj_mapper($i['obj_type']);
|
||||
$ret['id'] = ((strpos($i['mid'],'http') === 0) ? $i['mid'] : z_root() . '/item/' . urlencode($i['mid']));
|
||||
$actor = self::encode_person($i['author'],false);
|
||||
if($actor)
|
||||
$ret['actor'] = $actor;
|
||||
else
|
||||
return [];
|
||||
return $ret;
|
||||
}
|
||||
|
||||
|
@ -54,6 +54,7 @@ class Share {
|
||||
if(! $this->item)
|
||||
return $obj;
|
||||
|
||||
$obj['asld'] = $this->item['mid'];
|
||||
$obj['type'] = $this->item['obj_type'];
|
||||
$obj['id'] = $this->item['mid'];
|
||||
$obj['content'] = $this->item['body'];
|
||||
|
Reference in New Issue
Block a user