diff options
author | Maxence Lange <maxence@artificial-owl.com> | 2018-12-17 08:12:43 -0100 |
---|---|---|
committer | Maxence Lange <maxence@artificial-owl.com> | 2018-12-17 08:12:43 -0100 |
commit | 86f2029834f8e474873c335d29e9bf9f6b6f4abf (patch) | |
tree | 2a7f7b1916999fbb6a30984d1b5f0cb65bd78046 /lib/webfinger.php | |
parent | a1f0ff0198ba150c9497b6533fc2dc6da2c2debf (diff) |
using cache instead
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/webfinger.php')
-rw-r--r-- | lib/webfinger.php | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/webfinger.php b/lib/webfinger.php index 8c195c6f..0734d7c6 100644 --- a/lib/webfinger.php +++ b/lib/webfinger.php @@ -30,8 +30,7 @@ namespace OCA\Social; use Exception; -use OCA\Social\Service\ActorService; -use OCP\AppFramework\QueryException; +use OCA\Social\Service\CacheActorService; require_once(__DIR__ . '/../appinfo/autoload.php'); @@ -54,10 +53,9 @@ if ($type !== 'acct') { $username = substr($account, 0, strrpos($account, '@')); -/** @var ActorService $actorService */ try { - $actorService = \OC::$server->query(ActorService::class); - $actorService->getActor($username); + $cacheActorService = \OC::$server->query(CacheActorService::class); + $cacheActorService->getFromLocalAccount($username); } catch (Exception $e) { http_response_code(404); exit; |