feat: invitation link (#3979)
* feat: invitation link schema and apis * feat: add invitation link * feat: member status: active, leave, forbidden * fix: expires show hours and minutes * feat: invalid invitation link hint * fix: typo * chore: fix typo & i18n * fix * pref: fe * feat: add ttl index for 30-day-clean-up
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
export function isForbidden({ expires, forbidden }: { expires: Date; forbidden?: boolean }) {
|
||||
return forbidden || new Date(expires) < new Date();
|
||||
}
|
||||
Reference in New Issue
Block a user