empty result on missing actor

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/1226/head
Maxence Lange 2021-03-18 12:58:18 -01:00
rodzic ce462c707a
commit 0c1e12aa7e
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -131,10 +131,7 @@ class WebfingerHandler implements IHandler {
try {
$actor = $this->cacheActorService->getFromLocalAccount($subject);
} catch (CacheActorDoesNotExistException $e) {
$actor = $this->cacheActorsRequest->getFromId($subject);
if (!$actor->isLocal()) {
throw new CacheActorDoesNotExistException();
}
return $response;
}
$href = $this->configService->getSocialUrl() . '@' . $actor->getPreferredUsername();