This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
闭社主体
https://thu.closed.social
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9062
Commits
4
Branches
567 MiB
Tree:
1de63fe48a
closed-social-glitch-2
closed-social-v3
cs+3.4.6
master
v0.1.2
v0.1.1
v0.1.0
Branches
Tags
${ item.name }
Create branch
${ searchTerm }
from '1de63fe48a'
${ noResults }
mastodon
/
spec
/
fabricators
/
invite_fabricator.rb
6 lines
83 B
Raw
Normal View
History
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
7 years ago
Fabricator
(
:invite
)
do
user
expires_at
nil
max_uses
nil
uses
0
end