summaryrefslogtreecommitdiffstats
path: root/lib/webfinger.php
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-12-17 08:12:43 -0100
committerMaxence Lange <maxence@artificial-owl.com>2018-12-17 08:12:43 -0100
commit86f2029834f8e474873c335d29e9bf9f6b6f4abf (patch)
tree2a7f7b1916999fbb6a30984d1b5f0cb65bd78046 /lib/webfinger.php
parenta1f0ff0198ba150c9497b6533fc2dc6da2c2debf (diff)
using cache instead
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/webfinger.php')
-rw-r--r--lib/webfinger.php8
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;