feat: add 'feature' options
This commit is contained in:
1 parent
e28ab154d9
commit
24c0c248f3
5 files changed
+46
-21
No files matched your search
@@ -78,7 +78,10 @@ export const amMod = (me: MyUserInfo, community: Community) =>
|
||||
export const amModOfAny = (me?: MyUserInfo) =>
|
||||
me && (me.moderates.length > 0 || isAdmin(me))
|
||||
|
||||
export const isAdmin = (me: MyUserInfo) => me.local_user_view.local_user.admin
|
||||
export const isAdmin = (me: MyUserInfo) =>
|
||||
// backwards compatibility hack
|
||||
// @ts-ignore
|
||||
me.local_user_view.local_user.admin ?? me.local_user_view.person?.admin
|
||||
|
||||
export const removalTemplate = (
|
||||
input: string,
|
||||
|
||||
Reference in new issue
Block a user