mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 05:15:16 +00:00
eliminate fragments in outbound ActivityPub URIs
This commit is contained in:
parent
eda4a2c116
commit
98e5105ad7
2 changed files with 4 additions and 4 deletions
|
@ -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']
|
||||
];
|
||||
|
|
|
@ -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' => [
|
||||
|
|
Loading…
Reference in a new issue