mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update ApiV1Dot1Controller, lint
This commit is contained in:
parent
4d6cea9aa4
commit
5b85efb570
1 changed files with 1 additions and 1 deletions
|
@ -997,7 +997,7 @@ class ApiV1Dot1Controller extends Controller
|
|||
'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;
|
||||
$parts = explode('@', $pre);
|
||||
$username = $parts[0];
|
||||
|
|
Loading…
Reference in a new issue