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 (policies.canInitiateConversation === false) {
|
||||||
if (
|
if (
|
||||||
mentionedUsers.some(u => u.id !== user.id)
|
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))
|
|| (data.visibility === 'specified' && data.visibleUsers?.some(u => u.id !== user.id))
|
||||||
|| (this.isQuote(data) && data.renote.userId !== user.id)
|
|| (this.isQuote(data) && data.renote.userId !== user.id)
|
||||||
) {
|
) {
|
||||||
|
|
|
@ -140,6 +140,10 @@ export const packedRolePoliciesSchema = {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
},
|
},
|
||||||
|
canInitiateConversation: {
|
||||||
|
type: 'boolean',
|
||||||
|
optional: false, nullable: false,
|
||||||
|
},
|
||||||
canCreateContent: {
|
canCreateContent: {
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
optional: false, nullable: false,
|
optional: false, nullable: false,
|
||||||
|
|
|
@ -4784,6 +4784,7 @@ export type components = {
|
||||||
gtlAvailable: boolean;
|
gtlAvailable: boolean;
|
||||||
ltlAvailable: boolean;
|
ltlAvailable: boolean;
|
||||||
canPublicNote: boolean;
|
canPublicNote: boolean;
|
||||||
|
canInitiateConversation: boolean;
|
||||||
canCreateContent: boolean;
|
canCreateContent: boolean;
|
||||||
canUpdateContent: boolean;
|
canUpdateContent: boolean;
|
||||||
canDeleteContent: boolean;
|
canDeleteContent: boolean;
|
||||||
|
|
Loading…
Reference in New Issue