Bump mod SDK and add more details to mod info dialog (#10420)
This commit is contained in:
@@ -9,7 +9,8 @@ import {useModerationCauseDescription} from '#/lib/moderation/useModerationCause
|
||||
import {makeProfileLink} from '#/lib/routes/links'
|
||||
import {listUriToHref} from '#/lib/strings/url-helpers'
|
||||
import {useSession} from '#/state/session'
|
||||
import {atoms as a, useGutters, useTheme} from '#/alf'
|
||||
import {atoms as a, useGutters, useTheme, web} from '#/alf'
|
||||
import {Admonition} from '#/components/Admonition'
|
||||
import * as Dialog from '#/components/Dialog'
|
||||
import {InlineLinkText} from '#/components/Link'
|
||||
import {type AppModerationCause} from '#/components/Pills'
|
||||
@@ -143,7 +144,10 @@ function ModerationDetailsDialogInner({
|
||||
paddingLeft: 0,
|
||||
paddingRight: 0,
|
||||
paddingBottom: 0,
|
||||
}}>
|
||||
}}
|
||||
style={web({
|
||||
maxWidth: 460,
|
||||
})}>
|
||||
<View style={[xGutters, a.pb_lg]}>
|
||||
<Text emoji style={[t.atoms.text, a.text_2xl, a.font_bold, a.mb_sm]}>
|
||||
{name}
|
||||
@@ -151,6 +155,15 @@ function ModerationDetailsDialogInner({
|
||||
<Text style={[t.atoms.text, a.text_sm, a.leading_snug]}>
|
||||
{description}
|
||||
</Text>
|
||||
|
||||
{desc.isSubjectAccount && (
|
||||
<Admonition type="info" style={[a.mt_md]}>
|
||||
<Trans>
|
||||
This moderation was applied to the entire user account and will
|
||||
appear on all posts.
|
||||
</Trans>
|
||||
</Admonition>
|
||||
)}
|
||||
</View>
|
||||
|
||||
{modcause?.type === 'label' && (
|
||||
|
||||
@@ -84,7 +84,10 @@ export function usePreferencesQuery() {
|
||||
* Prefs are all downstream of age assurance now. For logged-out
|
||||
* users, we override moderation prefs based on AA state.
|
||||
*/
|
||||
if (aa.state.access !== aa.Access.Full) {
|
||||
if (
|
||||
aa.state.access !== aa.Access.Full ||
|
||||
aa.flags.adultContentDisabled
|
||||
) {
|
||||
data = {
|
||||
...data,
|
||||
moderationPrefs: makeAgeRestrictedModerationPrefs(
|
||||
|
||||
@@ -379,7 +379,7 @@ function ProfileScreenLoaded({
|
||||
<ScreenHider
|
||||
testID="profileView"
|
||||
style={styles.container}
|
||||
screenDescription={_(msg`profile`)}
|
||||
screenDescription={_(msg`user`)}
|
||||
modui={moderation.ui('profileView')}>
|
||||
<PagerWithHeader
|
||||
testID="profilePager"
|
||||
|
||||
Reference in New Issue
Block a user