mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 04:26:58 +00:00
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1120 Closes #44 Approved-by: dakkar <dakkar@thenautilus.net> Approved-by: Marie <github@yuugi.dev>
This commit is contained in:
commit
f58badade8
1 changed files with 22 additions and 2 deletions
|
@ -778,9 +778,29 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
||||||
const after = await this.metaService.fetch(true);
|
const after = await this.metaService.fetch(true);
|
||||||
|
|
||||||
this.moderationLogService.log(me, 'updateServerSettings', {
|
this.moderationLogService.log(me, 'updateServerSettings', {
|
||||||
before,
|
before: sanitize(before),
|
||||||
after,
|
after: sanitize(after),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function sanitize(meta: Partial<MiMeta>): Partial<MiMeta> {
|
||||||
|
return {
|
||||||
|
...meta,
|
||||||
|
hcaptchaSecretKey: '<redacted>',
|
||||||
|
mcaptchaSecretKey: '<redacted>',
|
||||||
|
recaptchaSecretKey: '<redacted>',
|
||||||
|
turnstileSecretKey: '<redacted>',
|
||||||
|
fcSecretKey: '<redacted>',
|
||||||
|
smtpPass: '<redacted>',
|
||||||
|
swPrivateKey: '<redacted>',
|
||||||
|
objectStorageAccessKey: '<redacted>',
|
||||||
|
objectStorageSecretKey: '<redacted>',
|
||||||
|
deeplAuthKey: '<redacted>',
|
||||||
|
libreTranslateKey: '<redacted>',
|
||||||
|
verifymailAuthKey: '<redacted>',
|
||||||
|
truemailAuthKey: '<redacted>',
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue