eliminate fragments in outbound ActivityPub URIs

This commit is contained in:
nobody 2021-08-03 17:26:45 -07:00
parent eda4a2c116
commit 98e5105ad7
2 changed files with 4 additions and 4 deletions

View file

@ -1622,7 +1622,7 @@ class Activity {
$ret['discoverable'] = ((1 - intval($p['xchan_hidden'])) ? true : false);
$ret['publicKey'] = [
'id' => $p['xchan_url'],
'id' => $p['xchan_url'] . '?operation=getkey',
'owner' => $p['xchan_url'],
'publicKeyPem' => $p['xchan_pubkey']
];

View file

@ -51,7 +51,7 @@ class ActivityPub {
if ($purge_all) {
$ti = [
'id' => channel_url($arr['channel']) . '#delete',
'id' => channel_url($arr['channel']) . '?operation=delete',
'actor' => channel_url($arr['channel']),
'type' => 'Delete',
'object' => channel_url($arr['channel']),
@ -416,7 +416,7 @@ class ActivityPub {
Activity::ap_schema()
]],
[
'id' => z_root() . '/follow/' . $recip[0]['abook_id'] . '/' . md5($orig_activity) . '#reject',
'id' => z_root() . '/follow/' . $recip[0]['abook_id'] . '/' . md5($orig_activity) . '?operation=reject',
'type' => 'Reject',
'actor' => $p,
'object' => [
@ -440,7 +440,7 @@ class ActivityPub {
Activity::ap_schema()
]],
[
'id' => z_root() . '/follow/' . $recip[0]['abook_id'] . (($orig_activity) ? '/' . md5($orig_activity) : EMPTY_STR) . '#Undo',
'id' => z_root() . '/follow/' . $recip[0]['abook_id'] . (($orig_activity) ? '/' . md5($orig_activity) : EMPTY_STR) . '?operation=unfollow',
'type' => 'Undo',
'actor' => $p,
'object' => [