Reserve and use 'moderated' tag

dev
gravel 1 year ago
parent 53ad7da550
commit 9340cb1dec
Signed by: gravel
GPG Key ID: C0538F3C906B308F

@ -341,6 +341,7 @@
public const USERS_PER_STAFF = 50; public const USERS_PER_STAFF = 50;
public const USERS_PER_STAFF_WARNING = 200; public const USERS_PER_STAFF_WARNING = 200;
public const MINIMUM_STAFF = 2;
private function has_good_staff_rating(): bool { private function has_good_staff_rating(): bool {
$recommended_staff_count = $this->active_users / CommunityRoom::USERS_PER_STAFF; $recommended_staff_count = $this->active_users / CommunityRoom::USERS_PER_STAFF;
@ -398,7 +399,7 @@
if ($this->write && $this->has_good_staff_rating()) { if ($this->write && $this->has_good_staff_rating()) {
$derived_tags[] = $derived_tags[] =
new CommunityTag( new CommunityTag(
"modded", "moderated",
TagType::RESERVED_TAG, TagType::RESERVED_TAG,
"This Community has at least 1 staff per $USERS_PER_STAFF active users. $CHECK_MARK" "This Community has at least 1 staff per $USERS_PER_STAFF active users. $CHECK_MARK"
); );

@ -158,7 +158,9 @@
"nsfw", "nsfw",
"new", "new",
"modded", "modded",
"moderated",
"not modded", "not modded",
"not moderated",
"read-only", "read-only",
"uploads off", "uploads off",
"we're here", "we're here",

Loading…
Cancel
Save