Commit Graph

9 Commits (ccb6aeddacbab950d7d7f1b0d2b64212d7aa99eb)

Author SHA1 Message Date
Matt Jankowski f5bc1f20e2
Add coverage for `ExistingUsernameValidator` ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Matt Jankowski 9f5deb310b
Fix Performance/MapCompact cop ()
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Nick Schonning 2177daeae9
Autofix Rubocop Style/RedundantBegin ()
Eugen Rochko abf6c87ee8
Fix remote account in contact account setting not being used ()
Eugen Rochko 3639862dee
Fix existing username validator not allowing multiple accounts ()
Fix 
Eugen Rochko daccc07dc1
Change auto-following admin-selected accounts, show in recommendations ()
luigi 087ed84367
Optimize map { ... }.compact calls ()
* Optimize map { ... }.compact

using Enumerable#filter_map, supported since Ruby 2.7

* Add poyfill for Enumerable#filter_map
Eugen Rochko 2c63e0292a
Fix admin validation being too strict about usernames ()
* Fix admin validation being too strict about usernames

Fix 

* Strip Setting.site_contact_username consistently throughout the codebase
Eugen Rochko 555c4e11ba
Add validations to admin settings ()
* Add validations to admin settings

- Validate correct HTML markup
- Validate presence of contact username & e-mail
- Validate that all usernames are valid
- Validate that enums have expected values

* Fix code style issue

* Fix tests