Merge remote-tracking branch 'mike/master' into dev

This commit is contained in:
Mario Vavti 2019-01-28 12:48:21 +01:00
commit 671b6d2eda
2 changed files with 6 additions and 0 deletions

View File

@ -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;
}

View File

@ -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'];