mirror of
https://github.com/paricafe/misskey.git
synced 2025-01-19 08:08:41 -06:00
fix
This commit is contained in:
parent
8c4a2d662d
commit
60e3a5f475
1 changed files with 4 additions and 13 deletions
|
@ -35,11 +35,8 @@ export type RolePolicies = {
|
||||||
gtlAvailable: boolean;
|
gtlAvailable: boolean;
|
||||||
ltlAvailable: boolean;
|
ltlAvailable: boolean;
|
||||||
canPublicNote: boolean;
|
canPublicNote: boolean;
|
||||||
<<<<<<< HEAD
|
|
||||||
mentionLimit: number;
|
|
||||||
=======
|
|
||||||
canEditNote: boolean;
|
canEditNote: boolean;
|
||||||
>>>>>>> 559cf1830 (feat(wip): note editing)
|
mentionLimit: number;
|
||||||
canInvite: boolean;
|
canInvite: boolean;
|
||||||
inviteLimit: number;
|
inviteLimit: number;
|
||||||
inviteLimitCycle: number;
|
inviteLimitCycle: number;
|
||||||
|
@ -68,11 +65,8 @@ export const DEFAULT_POLICIES: RolePolicies = {
|
||||||
gtlAvailable: true,
|
gtlAvailable: true,
|
||||||
ltlAvailable: true,
|
ltlAvailable: true,
|
||||||
canPublicNote: true,
|
canPublicNote: true,
|
||||||
<<<<<<< HEAD
|
|
||||||
mentionLimit: 20,
|
|
||||||
=======
|
|
||||||
canEditNote: true,
|
canEditNote: true,
|
||||||
>>>>>>> 559cf1830 (feat(wip): note editing)
|
mentionLimit: 20,
|
||||||
canInvite: false,
|
canInvite: false,
|
||||||
inviteLimit: 0,
|
inviteLimit: 0,
|
||||||
inviteLimitCycle: 60 * 24 * 7,
|
inviteLimitCycle: 60 * 24 * 7,
|
||||||
|
@ -372,11 +366,8 @@ export class RoleService implements OnApplicationShutdown, OnModuleInit {
|
||||||
gtlAvailable: calc('gtlAvailable', vs => vs.some(v => v === true)),
|
gtlAvailable: calc('gtlAvailable', vs => vs.some(v => v === true)),
|
||||||
ltlAvailable: calc('ltlAvailable', vs => vs.some(v => v === true)),
|
ltlAvailable: calc('ltlAvailable', vs => vs.some(v => v === true)),
|
||||||
canPublicNote: calc('canPublicNote', vs => vs.some(v => v === true)),
|
canPublicNote: calc('canPublicNote', vs => vs.some(v => v === true)),
|
||||||
<<<<<<< HEAD
|
|
||||||
mentionLimit: calc('mentionLimit', vs => Math.max(...vs)),
|
|
||||||
=======
|
|
||||||
canEditNote: calc('canEditNote', vs => vs.some(v => v === true)),
|
canEditNote: calc('canEditNote', vs => vs.some(v => v === true)),
|
||||||
>>>>>>> 559cf1830 (feat(wip): note editing)
|
mentionLimit: calc('mentionLimit', vs => Math.max(...vs)),
|
||||||
canInvite: calc('canInvite', vs => vs.some(v => v === true)),
|
canInvite: calc('canInvite', vs => vs.some(v => v === true)),
|
||||||
inviteLimit: calc('inviteLimit', vs => Math.max(...vs)),
|
inviteLimit: calc('inviteLimit', vs => Math.max(...vs)),
|
||||||
inviteLimitCycle: calc('inviteLimitCycle', vs => Math.max(...vs)),
|
inviteLimitCycle: calc('inviteLimitCycle', vs => Math.max(...vs)),
|
||||||
|
|
Loading…
Reference in a new issue