fix(backend): リプライ禁止ポリシーにて自分にリプライできないのを修正 (MisskeyIO#495)
This commit is contained in:
parent
f4348af944
commit
62e7961aea
|
@ -383,7 +383,7 @@ export class NoteCreateService implements OnApplicationShutdown {
|
|||
if (policies.canInitiateConversation === false) {
|
||||
if (
|
||||
mentionedUsers.some(u => u.id !== user.id)
|
||||
|| (data.reply && data.reply.replyUserId !== user.id)
|
||||
|| (data.reply && data.reply.userId !== user.id)
|
||||
|| (data.visibility === 'specified' && data.visibleUsers?.some(u => u.id !== user.id))
|
||||
|| (this.isQuote(data) && data.renote.userId !== user.id)
|
||||
) {
|
||||
|
|
|
@ -140,6 +140,10 @@ export const packedRolePoliciesSchema = {
|
|||
type: 'boolean',
|
||||
optional: false, nullable: false,
|
||||
},
|
||||
canInitiateConversation: {
|
||||
type: 'boolean',
|
||||
optional: false, nullable: false,
|
||||
},
|
||||
canCreateContent: {
|
||||
type: 'boolean',
|
||||
optional: false, nullable: false,
|
||||
|
|
|
@ -4784,6 +4784,7 @@ export type components = {
|
|||
gtlAvailable: boolean;
|
||||
ltlAvailable: boolean;
|
||||
canPublicNote: boolean;
|
||||
canInitiateConversation: boolean;
|
||||
canCreateContent: boolean;
|
||||
canUpdateContent: boolean;
|
||||
canDeleteContent: boolean;
|
||||
|
|
Loading…
Reference in New Issue