1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-28 14:58:21 +09:00
mastodon/spec
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
..
controllers Change unconfirmed user login behaviour (#11375) 2019-07-22 10:48:50 +02:00
fabricators Remove WebSub subscriptions (#11303) 2019-07-21 04:08:00 +02:00
features Change unconfirmed user login behaviour (#11375) 2019-07-22 10:48:50 +02:00
fixtures Remove Salmon and PubSubHubbub (#11205) 2019-07-06 23:26:16 +02:00
helpers Remove Atom feeds and old URLs in the form of GET /:username/updates/:id (#11247) 2019-07-07 16:16:51 +02:00
lib Play animated custom emoji on hover (#11348) 2019-07-21 18:10:40 +02:00
mailers Add invite request to pending account notification e-mail (#10528) 2019-04-10 00:36:01 +02:00
models Don't delete periods when validating username uniqueness (#11392) (#11400) 2019-07-24 14:19:17 +02:00
policies Remove WebSub subscriptions (#11303) 2019-07-21 04:08:00 +02:00
presenters Admission-based registrations mode (#10250) 2019-03-14 05:28:30 +01:00
requests Refactor controllers for statuses, accounts, and more (#11249) 2019-07-08 12:03:45 +02:00
routing Move create/destroy actions for api/v1/statuses to namespace (#3678) 2017-06-10 09:39:26 +02:00
serializers/activitypub Fix account URI in UpdatePollSerializer (#11194) 2019-06-27 19:41:55 +02:00
services Remove WebSub subscriptions (#11303) 2019-07-21 04:08:00 +02:00
support Remove empty strings (#5732) 2017-11-17 10:52:30 +09:00
validators Fix “invited by” not showing up for invited accounts in admin interface (#10791) 2019-05-19 21:40:36 +02:00
views Remove Atom feeds and old URLs in the form of GET /:username/updates/:id (#11247) 2019-07-07 16:16:51 +02:00
workers Remove Salmon and PubSubHubbub (#11205) 2019-07-06 23:26:16 +02:00
rails_helper.rb Disable Same-Site cookie implementation to fix SSO issues on WebKit browsers (#9819) 2019-01-15 23:11:46 +01:00
spec_helper.rb Add ActivityPub actor representing the entire server (#11321) 2019-07-19 01:44:42 +02:00