From e5d77c6d95cfafc6b7f4013a2dd47720da14fa2f Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 13 Nov 2019 23:20:01 -0700 Subject: [PATCH 1/2] Update FixUsernames command --- app/Console/Commands/FixUsernames.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/FixUsernames.php b/app/Console/Commands/FixUsernames.php index 40081d418..a9333828c 100644 --- a/app/Console/Commands/FixUsernames.php +++ b/app/Console/Commands/FixUsernames.php @@ -51,7 +51,7 @@ class FixUsernames extends Command if(in_array($user->username, $restricted)) { $affected->push($user); } - $val = str_replace(['-', '_'], '', $user->username); + $val = str_replace(['-', '_', '.'], '', $user->username); if(!ctype_alnum($val)) { $this->info('Found invalid username: ' . $user->username); $affected->push($user); From 0cfe0da1df1b90741e22f1b75ce7e6b72f210c15 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 13 Nov 2019 23:21:19 -0700 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38f7b07c0..53b6e45a2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -44,6 +44,7 @@ - Updated FollowerController to fix bug affecting private profiles ([a429d961](https://github.com/pixelfed/pixelfed/commit/a429d961)) - Updated StatusTransformer, added ```local``` attribute ([484bb509](https://github.com/pixelfed/pixelfed/commit/484bb509)) - Updated PostComponent, fix bug affecting MomentUI and non authenticated users ([7b3fe215](https://github.com/pixelfed/pixelfed/commit/7b3fe215)) +- Updated FixUsernames command to allow usernames containing ```.``` ([e5d77c6d](https://github.com/pixelfed/pixelfed/commit/e5d77c6d)) ## Deprecated