1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-21 13:25:45 +02:00
This commit is contained in:
syuilo
2026-01-29 13:50:37 +09:00
parent f3d26722bb
commit 9dc4762fe0
8 changed files with 73 additions and 1 deletions

View File

@@ -722,6 +722,11 @@ export class MiMeta {
})
public showRoleBadgesOfRemoteUsers: boolean;
@Column('boolean', {
default: false,
})
public enableSpReaction: boolean;
@Column('jsonb', {
default: { },
})

View File

@@ -596,6 +596,10 @@ export const meta = {
type: 'boolean',
optional: false, nullable: false,
},
enableSpReaction: {
type: 'boolean',
optional: false, nullable: false,
},
},
},
} as const;
@@ -752,6 +756,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
remoteNotesCleaningExpiryDaysForEachNotes: instance.remoteNotesCleaningExpiryDaysForEachNotes,
remoteNotesCleaningMaxProcessingDurationInMinutes: instance.remoteNotesCleaningMaxProcessingDurationInMinutes,
showRoleBadgesOfRemoteUsers: instance.showRoleBadgesOfRemoteUsers,
enableSpReaction: instance.enableSpReaction,
};
});
}

View File

@@ -218,6 +218,7 @@ export const paramDef = {
remoteNotesCleaningExpiryDaysForEachNotes: { type: 'number' },
remoteNotesCleaningMaxProcessingDurationInMinutes: { type: 'number' },
showRoleBadgesOfRemoteUsers: { type: 'boolean' },
enableSpReaction: { type: 'boolean' },
},
required: [],
} as const;
@@ -762,6 +763,10 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
set.showRoleBadgesOfRemoteUsers = ps.showRoleBadgesOfRemoteUsers;
}
if (ps.enableSpReaction !== undefined) {
set.enableSpReaction = ps.enableSpReaction;
}
const before = await this.metaService.fetch(true);
await this.metaService.update(set);