feat: moderation settings (#6895)

* feat: moderation settings

* chore: move moderation specific feature flag to settings

* feat: force open collapsed regions if opened in new tab

* chore: remove unused field

* chore: run prepr
This commit is contained in:
ThatGravyBoat
2026-07-28 19:38:56 +00:00
committed by GitHub
parent 82348fe40a
commit fe69e04785
25 changed files with 698 additions and 416 deletions
@@ -5,7 +5,7 @@
'has-body': message.body.type === 'text' && !forceCompact,
'no-actions': noLinks,
private: isPrivateMessage,
'show-private-bg': flags.showModeratorPrivateMessageHighlight,
'show-private-bg': settings.get(moderationSettings.General.PrivateMessageHighlight),
}"
>
<template v-if="members[message.author_id]">
@@ -149,6 +149,7 @@ import {
ScaleIcon,
TrashIcon,
} from '@modrinth/assets'
import { moderationSettings } from '@modrinth/moderation'
import {
AutoLink,
Avatar,
@@ -194,7 +195,7 @@ const props = defineProps({
})
const emit = defineEmits(['update-thread'])
const flags = useFeatureFlags()
const settings = useModerationSettings()
const formattedMessage = computed(() => {
const body = renderString(props.message.body.body)