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;
|
||||
}
|
||||
|
||||
$href =
|
||||
$urlGenerator->linkToRouteAbsolute('social.ActivityPub.actorAlias', ['username' => $username]);
|
||||
|
||||
if (substr($href, -1) === '/') {
|
||||
$href = substr($href, 0, -1);
|
||||
}
|
||||
|
||||
$finger = [
|
||||
'subject' => $subject,
|
||||
'links' => [
|
||||
[
|
||||
'rel' => 'self',
|
||||
'type' => 'application/activity+json',
|
||||
'href' => $urlGenerator->linkToRouteAbsolute(
|
||||
'social.ActivityPub.actorAlias', ['username' => $username]
|
||||
)
|
||||
'href' => $href
|
||||
]
|
||||
]
|
||||
];
|
||||
|
|
Ładowanie…
Reference in New Issue