1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-11-27 06:18:40 +09:00

fix(about-report-resolver): 転送設定を一度有効にすると戻すことができない問題を修正 (MisskeyIO#812)

Cherry-picked from atsu1125/misskey-core@5001b4b77c

Co-authored-by: atsu1125 <atsuchan@atsuchan.page>
This commit is contained in:
あわわわとーにゅ 2024-11-10 13:03:18 +09:00 committed by GitHub
parent 6cebb2b9ed
commit 43f0b9a73c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -99,7 +99,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
} else if (ps.reportContentPattern === null) { } else if (ps.reportContentPattern === null) {
properties.reportContentPattern = null; properties.reportContentPattern = null;
} }
if (ps.forward) properties.forward = ps.forward; if (ps.forward !== undefined) properties.forward = ps.forward;
if (ps.expiresAt) { if (ps.expiresAt) {
let expirationDate: Date | null = new Date(); let expirationDate: Date | null = new Date();
const previousMonth = expirationDate.getUTCMonth(); const previousMonth = expirationDate.getUTCMonth();