1
0
Fork 0

Update ApiV1Dot1Controller, lint

This commit is contained in:
Daniel Supernault 2024-06-08 06:57:09 -06:00
parent 4d6cea9aa4
commit 5b85efb570
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1
1 changed files with 1 additions and 1 deletions

View File

@ -997,7 +997,7 @@ class ApiV1Dot1Controller extends Controller
'X-Rate-Limit-Reset' => RateLimiter::availableIn($userKey), 'X-Rate-Limit-Reset' => RateLimiter::availableIn($userKey),
]; ];
} }
if(str_ends_with($username, config_cache('pixelfed.domain.app'))) { if (str_ends_with($username, config_cache('pixelfed.domain.app'))) {
$pre = str_starts_with($username, '@') ? substr($username, 1) : $username; $pre = str_starts_with($username, '@') ? substr($username, 1) : $username;
$parts = explode('@', $pre); $parts = explode('@', $pre);
$username = $parts[0]; $username = $parts[0];