mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
commit
c6f69b99d6
2 changed files with 6 additions and 1 deletions
|
@ -57,7 +57,7 @@ class FixUsernames extends Command
|
|||
if($user->is_admin || $user->status == 'deleted') {
|
||||
continue;
|
||||
}
|
||||
if(in_array($user->username, $restricted)) {
|
||||
if(in_array(strtolower($user->username), array_map('strtolower', $restricted))) {
|
||||
$affected->push($user);
|
||||
}
|
||||
$val = str_replace(['-', '_', '.'], '', $user->username);
|
||||
|
|
|
@ -40,4 +40,9 @@ class Place extends Model
|
|||
{
|
||||
return $this->url();
|
||||
}
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return $this->name . ', ' . $this->country;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue