mastodon/app/models
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
..
admin Add logging of admin actions (#5757) 2017-11-24 02:05:53 +01:00
concerns Fix AccountFinderConcern::AccountFinder#with_usernames (#5722) 2017-11-16 12:13:03 +01:00
form Add consumable invites (#5814) 2017-11-27 16:07:59 +01:00
web Lists (#5703) 2017-11-18 00:16:48 +01:00
account.rb Profile redirect notes (#5746) 2017-11-18 19:39:02 +01:00
account_domain_block.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
account_filter.rb Improve admin UI for custom emojis, add copy/disable/enable (#5231) 2017-10-05 23:42:05 +02:00
account_moderation_note.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
admin.rb Add logging of admin actions (#5757) 2017-11-24 02:05:53 +01:00
application_record.rb
block.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
context.rb
conversation.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
conversation_mute.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
custom_emoji.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
custom_emoji_filter.rb Improve admin UI for custom emojis, add copy/disable/enable (#5231) 2017-10-05 23:42:05 +02:00
domain_block.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
email_domain_block.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
export.rb
favourite.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
feed.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
follow.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
follow_request.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
home_feed.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
import.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
instance.rb
instance_filter.rb
invite.rb Add consumable invites (#5814) 2017-11-27 16:07:59 +01:00
list.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
list_account.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
list_feed.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
media_attachment.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
mention.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
mute.rb Optional notification muting (#5087) 2017-11-15 03:56:41 +01:00
notification.rb Fix N+1 at notification (#5752) 2017-11-19 15:32:48 +01:00
preview_card.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
remote_follow.rb
remote_profile.rb
report.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
report_filter.rb
search.rb
session_activation.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
setting.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
site_upload.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
status.rb status: preserve visibility attribute when reblogging (infoleak fix) (#5789) 2017-11-25 01:36:08 +01:00
status_pin.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
stream_entry.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
subscription.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
tag.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
user.rb Add consumable invites (#5814) 2017-11-27 16:07:59 +01:00
web.rb