mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 12:52:26 +00:00
Align moderation defaults with instance config
This commit is contained in:
1 parent
5818300377
commit
c575f48a81
9 files changed
+320
-145
No files matched your search
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user