1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
mastodon/spec/fabricators
Eugen Rochko 740f8a95a9
Add consumable invites (#5814)
* Add consumable invites

* Add UI for generating invite codes

* Add tests

* Display max uses and expiration in invites table, delete invite

* Remove unused column and redundant validator

- Default follows not used, probably bad idea
- InviteCodeValidator is redundant because RegistrationsController
  checks invite code validity

* Add admin setting to disable invites

* Add admin UI for invites, configurable role for invite creation

- Admin UI that lists everyone's invites, always available
- Admin setting min_invite_role to control who can invite people
- Non-admin invite UI only visible if users are allowed to

* Do not remove invites from database, expire them instantly
2017-11-27 16:07:59 +01:00
..
access_token_fabricator.rb
accessible_access_token_fabricator.rb
account_domain_block_fabricator.rb
account_fabricator.rb
account_moderation_note_fabricator.rb Add moderation note (#5240) 2017-10-07 20:26:43 +02:00
admin_action_log_fabricator.rb Add logging of admin actions (#5757) 2017-11-24 02:05:53 +01:00
application_fabricator.rb
block_fabricator.rb
conversation_fabricator.rb
conversation_mute_fabricator.rb
custom_emoji_fabricator.rb Custom emoji (#4988) 2017-09-19 02:42:40 +02:00
domain_block_fabricator.rb
email_domain_block_fabricator.rb Implement EmailBlackList (#5109) 2017-10-04 15:16:10 +02:00
favourite_fabricator.rb
follow_fabricator.rb
follow_request_fabricator.rb
import_fabricator.rb
invite_fabricator.rb Add consumable invites (#5814) 2017-11-27 16:07:59 +01:00
list_account_fabricator.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
list_fabricator.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
media_attachment_fabricator.rb
mention_fabricator.rb
mute_fabricator.rb
notification_fabricator.rb
preview_card_fabricator.rb
report_fabricator.rb
session_activation_fabricator.rb Add tests for SessionActivation (#5668) 2017-11-13 09:54:48 +09:00
setting_fabricator.rb Add tests for Setting (#5683) 2017-11-14 11:08:04 +09:00
site_upload_fabricator.rb Uploads for admin site settings (#4913) 2017-09-14 00:04:30 +02:00
status_fabricator.rb Switch to static URIs, new URI format in both protocols for new statuses (#4815) 2017-09-06 19:01:28 +02:00
status_pin_fabricator.rb
stream_entry_fabricator.rb
subscription_fabricator.rb
tag_fabricator.rb
user_fabricator.rb
web_push_subscription_fabricator.rb
web_setting_fabricator.rb