Commit graph

5 commits

Author SHA1 Message Date
Eugen Rochko
d3b2560e58 Fix existing username validator not allowing multiple accounts ()
Fix 
2021-05-04 14:22:04 +02:00
Eugen Rochko
f5d59b3979 Change auto-following admin-selected accounts, show in recommendations () 2021-04-24 17:01:43 +02:00
luigi
944b059f50 Optimize map { ... }.compact calls ()
* Optimize map { ... }.compact

using Enumerable#filter_map, supported since Ruby 2.7

* Add poyfill for Enumerable#filter_map
2021-01-10 00:32:01 +01:00
Eugen Rochko
d48f53cf1a 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
2019-04-06 17:53:17 +02:00
Eugen Rochko
c21bdc81d3 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
2019-03-23 14:07:04 +01:00