mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
clone confusion
This commit is contained in:
parent
2a1a7e2e46
commit
da75d15bfe
1 changed files with 3 additions and 3 deletions
|
@ -1099,8 +1099,8 @@ class Activity
|
|||
$ret = json_decode($i['obj'], true);
|
||||
}
|
||||
|
||||
if (array_path_exists('actor/id', $ret)) {
|
||||
$ret['actor'] = $ret['actor']['id'];
|
||||
if (array_path_exists('actor', $ret)) {
|
||||
$ret['actor'] = self::encode_person($ret['actor'],false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1163,7 +1163,7 @@ class Activity
|
|||
$ret['commentPolicy'] .= 'until=' . datetime_convert('UTC', 'UTC', $i['comments_closed'], ATOM_TIME);
|
||||
}
|
||||
|
||||
$ret['attributedTo'] = ((in_array($i['author']['xchan_network'],['zot6','nomad'])) ? $i['author']['xchan_url'] : $i['author']['xchan_hash']);
|
||||
$ret['attributedTo'] = self::encode_person($i['author'],false);
|
||||
|
||||
if ($i['mid'] !== $i['parent_mid']) {
|
||||
$ret['inReplyTo'] = $i['thr_parent'];
|
||||
|
|
Loading…
Reference in a new issue