Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/539/head
Maxence Lange 2019-05-26 23:14:07 -01:00
rodzic 1937326498
commit 1570dabe4d
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -242,7 +242,7 @@ class CacheActorsRequest extends CacheActorsRequestBuilder {
$cursor->closeCursor();
if ($data === false) {
throw new CacheActorDoesNotExistException();
throw new CacheActorDoesNotExistException('Unknown account \'' . $account . "'");
}
return $this->parseCacheActorsSelectSql($data);

Wyświetl plik

@ -54,17 +54,17 @@ if ($type !== 'acct') {
list($username, $instance) = explode('@', $account);
try {
$cacheActorService = OC::$server->query(CacheActorService::class);
$configService = OC::$server->query(ConfigService::class);
if ($configService->getCloudAddress(true) !== $instance) {
throw new Exception();
throw new Exception('instance is ' . $instance . ', expected ' . $configService->getCloudAddress(true));
}
$cacheActorService->getFromLocalAccount($username);
} catch (Exception $e) {
OC::$server->getLogger()->log(1, 'Exception on webfinger - ' . $e->getMessage());
http_response_code(404);
exit;
}