mastodon/app
Rey Tucker 94f5c714f1 Don't delete periods when validating username uniqueness (#11392) (#11400)
* Check to make sure usernames with '.' cannot be created

* Add test for instance actor account name conflicts

This makes sure that migration 20190715164535_add_instance_actor
won't fail if there's already an account that is named the same
as the domain (minus the .)

* Put the test into the correct context...

* Add another test to split this into two validations

* Don't delete periods when validating username uniqueness (#11392)

The 20190715164535_add_instance_actor migration fails if there's
already a username similar to the domain name, e.g. if you are
'vulpine.club' and have a user named 'vulpineclub', validation
fails.

Upon further review, usernames with periods are dropped by the
regular expression in the Account class, so we don't need to
worry about it here.

Fixes #11392
2019-07-24 14:19:17 +02:00
..
chewy Fix NameError (#11192) 2019-06-27 09:16:55 +02:00
controllers Bump active_model_serializers from 0.10.9 to 0.10.10 (#11311) 2019-07-23 11:10:42 +02:00
helpers Add HTTP signatures to all outgoing ActivityPub GET requests (#11284) 2019-07-11 14:49:55 +02:00
javascript Fix scrolling in single-column mode on Chrome (#11395) 2019-07-23 15:47:18 +02:00
lib Play animated custom emoji on hover (#11348) 2019-07-21 18:10:40 +02:00
mailers Remove Atom feeds and old URLs in the form of GET /:username/updates/:id (#11247) 2019-07-07 16:16:51 +02:00
models Change unconfirmed user login behaviour (#11375) 2019-07-22 10:48:50 +02:00
policies Remove WebSub subscriptions (#11303) 2019-07-21 04:08:00 +02:00
presenters Improve blocked view of profiles (#10491) 2019-04-07 04:59:13 +02:00
serializers Fix alerts booleans not being typecast correctly in push subscription (#11343) 2019-07-21 18:10:07 +02:00
services Remove WebSub subscriptions (#11303) 2019-07-21 04:08:00 +02:00
validators Don't delete periods when validating username uniqueness (#11392) (#11400) 2019-07-24 14:19:17 +02:00
views Change unconfirmed user login behaviour (#11375) 2019-07-22 10:48:50 +02:00
workers Remove WebSub subscriptions (#11303) 2019-07-21 04:08:00 +02:00