diff options
author | Mario <mario@mariovavti.com> | 2023-10-06 08:49:36 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2023-10-06 08:49:36 +0000 |
commit | fed9bc70727ed3f8feb2b01f7ffdfd4e0a52cd7e (patch) | |
tree | d79cba3da53b0e8d926cdc6b1bef741b11ca15fb /Zotlabs/Lib/Activity.php | |
parent | 044e252d195be7fb9c523e5ab7e5f37eae7f03fd (diff) | |
download | volse-hubzilla-fed9bc70727ed3f8feb2b01f7ffdfd4e0a52cd7e.tar.gz volse-hubzilla-fed9bc70727ed3f8feb2b01f7ffdfd4e0a52cd7e.tar.bz2 volse-hubzilla-fed9bc70727ed3f8feb2b01f7ffdfd4e0a52cd7e.zip |
use encode_person() instead of plain xchan_url since the function makes some special effort to determine the real actor id
Diffstat (limited to 'Zotlabs/Lib/Activity.php')
-rw-r--r-- | Zotlabs/Lib/Activity.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Activity.php b/Zotlabs/Lib/Activity.php index 227739fea..312fcdb5f 100644 --- a/Zotlabs/Lib/Activity.php +++ b/Zotlabs/Lib/Activity.php @@ -544,7 +544,7 @@ class Activity { $ret['commentPolicy'] .= 'until=' . datetime_convert('UTC', 'UTC', $i['comments_closed'], ATOM_TIME); } - $ret['attributedTo'] = $i['author']['xchan_url']; + $ret['attributedTo'] = self::encode_person($item['author'], false); if ($i['mid'] !== $i['parent_mid']) { $ret['inReplyTo'] = ((strpos($i['thr_parent'], 'http') === 0) ? $i['thr_parent'] : z_root() . '/item/' . urlencode($i['thr_parent'])); |