Преглед изворни кода

Fix typo in ApiV1Controller

Daniel Supernault пре 3 година
родитељ
комит
350585d316
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Http/Controllers/Api/ApiV1Controller.php

+ 1 - 1
app/Http/Controllers/Api/ApiV1Controller.php

@@ -141,7 +141,7 @@ class ApiV1Controller extends Controller
 		abort_if(!$user, 403);
 		abort_if(!$user, 403);
 		abort_if($user->status != null, 403);
 		abort_if($user->status != null, 403);
 
 
-		$res = AccountService::getMastodon($id);
+		$res = AccountService::getMastodon($user->profile_id);
 
 
 		$res['source'] = [
 		$res['source'] = [
 			'privacy' => $res['locked'] ? 'private' : 'public',
 			'privacy' => $res['locked'] ? 'private' : 'public',