From 350585d3160795f428361f83f330897258f23a13 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 14 Jan 2022 17:27:21 -0700 Subject: [PATCH] Fix typo in ApiV1Controller --- app/Http/Controllers/Api/ApiV1Controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Api/ApiV1Controller.php b/app/Http/Controllers/Api/ApiV1Controller.php index f62bcfe03..b99e75247 100644 --- a/app/Http/Controllers/Api/ApiV1Controller.php +++ b/app/Http/Controllers/Api/ApiV1Controller.php @@ -141,7 +141,7 @@ class ApiV1Controller extends Controller abort_if(!$user, 403); abort_if($user->status != null, 403); - $res = AccountService::getMastodon($id); + $res = AccountService::getMastodon($user->profile_id); $res['source'] = [ 'privacy' => $res['locked'] ? 'private' : 'public',