removing trail slash in the id of the Person

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/281/head
Maxence Lange 2018-12-27 10:30:36 -01:00
rodzic 4342d2d51e
commit c236a70c09
1 zmienionych plików z 8 dodań i 3 usunięć

Wyświetl plik

@ -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
]
]
];