kopia lustrzana https://github.com/nextcloud/social
removing trail slash in the id of the Person
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/281/head
rodzic
4342d2d51e
commit
c236a70c09
|
|
@ -61,15 +61,20 @@ try {
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$href =
|
||||||
|
$urlGenerator->linkToRouteAbsolute('social.ActivityPub.actorAlias', ['username' => $username]);
|
||||||
|
|
||||||
|
if (substr($href, -1) === '/') {
|
||||||
|
$href = substr($href, 0, -1);
|
||||||
|
}
|
||||||
|
|
||||||
$finger = [
|
$finger = [
|
||||||
'subject' => $subject,
|
'subject' => $subject,
|
||||||
'links' => [
|
'links' => [
|
||||||
[
|
[
|
||||||
'rel' => 'self',
|
'rel' => 'self',
|
||||||
'type' => 'application/activity+json',
|
'type' => 'application/activity+json',
|
||||||
'href' => $urlGenerator->linkToRouteAbsolute(
|
'href' => $href
|
||||||
'social.ActivityPub.actorAlias', ['username' => $username]
|
|
||||||
)
|
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Ładowanie…
Reference in New Issue