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_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
account.rb Profile redirect notes (#5746) 2017-11-18 19:39:02 +01:00
admin.rb Add logging of admin actions (#5757) 2017-11-24 02:05:53 +01:00
application_record.rb Fix rubocop issues, introduce usage of frozen literal to improve performance 2016-11-15 16:56:29 +01:00
block.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
context.rb Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl (#4090) 2017-07-07 04:02:06 +02:00
conversation_mute.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
conversation.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
custom_emoji.rb Lists (#5703) 2017-11-18 00:16:48 +01: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 Settings export refactor (#1646) 2017-04-13 13:02:02 +02:00
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_request.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
follow.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_filter.rb Add instance search feature (#4925) 2017-09-13 12:30:07 +02:00
instance.rb Add Instance class to list admin records (#3443) 2017-05-31 20:38:44 +02:00
invite.rb Add consumable invites (#5814) 2017-11-27 16:07:59 +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
list.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 rescue HTTP::ConnectionError in RemoteFollowController#create (#4726) 2017-08-28 19:12:09 +02:00
remote_profile.rb Introduce OStatus::TagManager (#5008) 2017-09-19 18:08:08 +02:00
report_filter.rb Admin reports with accounts (#2092) 2017-04-18 19:36:18 +02:00
report.rb Lists (#5703) 2017-11-18 00:16:48 +01:00
search.rb Refactor JSON templates to be generated with ActiveModelSerializers instead of Rabl (#4090) 2017-07-07 04:02:06 +02:00
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_pin.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
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 Add extended about page stub 2017-01-13 03:24:41 +01:00