mirror of
https://github.com/MisskeyIO/misskey
synced 2024-11-23 14:46: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:
parent
6cebb2b9ed
commit
43f0b9a73c
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user