Align moderation defaults with instance config

This commit is contained in:
thePR0M3TH3AN committed 2025-10-24 21:36:10 -04:00
1 parent 5818300377
commit c575f48a81
9 files changed
+320 -145

No files matched your search

+8 -6
View File
@@ -7,8 +7,10 @@ import {
} from "../config.js";
import { normalizeDesignSystemContext } from "../designSystem.js";
import {
getTrustedMuteHideThreshold,
getTrustedSpamHideThreshold,
DEFAULT_AUTOPLAY_BLOCK_THRESHOLD,
DEFAULT_BLUR_THRESHOLD,
DEFAULT_TRUSTED_MUTE_HIDE_THRESHOLD,
DEFAULT_TRUSTED_SPAM_HIDE_THRESHOLD,
RUNTIME_FLAGS,
} from "../constants.js";
import { getProviderMetadata } from "../services/authProviders/index.js";
@@ -65,10 +67,10 @@ function createInternalDefaultNwcSettings() {
}
const DEFAULT_INTERNAL_MODERATION_SETTINGS = Object.freeze({
blurThreshold: 1,
autoplayBlockThreshold: 1,
trustedMuteHideThreshold: getTrustedMuteHideThreshold(),
trustedSpamHideThreshold: getTrustedSpamHideThreshold(),
blurThreshold: DEFAULT_BLUR_THRESHOLD,
autoplayBlockThreshold: DEFAULT_AUTOPLAY_BLOCK_THRESHOLD,
trustedMuteHideThreshold: DEFAULT_TRUSTED_MUTE_HIDE_THRESHOLD,
trustedSpamHideThreshold: DEFAULT_TRUSTED_SPAM_HIDE_THRESHOLD,
});
function createInternalDefaultModerationSettings() {