nicolium: add a toggle for the new modal lol

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-21 13:08:50 +01:00
parent f2e0e1935d
commit 5c33d7d8c7
3 changed files with 16 additions and 1 deletions

View File

@ -486,7 +486,6 @@ const ReblogButton: React.FC<IReblogButton> = ({
const hasFilenameDescriptions = attachments.some((attachment) => {
const extension = (attachment.remote_url || attachment.url).split('.').pop()?.toLowerCase();
return attachment.description.trim().endsWith(`.${extension}`);
});

View File

@ -1608,6 +1608,7 @@
"preferences.fields.language_label": "Display language",
"preferences.fields.media_display_label": "Sensitive content",
"preferences.fields.mention_policy_label": "Accept mentions from",
"preferences.fields.missing_description_boost_modal_label": "Show confirmation dialog before reposting a post without media descriptions",
"preferences.fields.missing_description_modal_label": "Show confirmation dialog before sending a post without media descriptions",
"preferences.fields.preserve_spoilers_label": "Preserve content warning when replying",
"preferences.fields.privacy_label": "Default post privacy",

View File

@ -801,6 +801,21 @@ const Preferences = () => {
/>
</ListItem>
<ListItem
label={
<FormattedMessage
id='preferences.fields.missing_description_boost_modal_label'
defaultMessage='Show confirmation dialog before reposting a post without media descriptions'
/>
}
>
<SettingToggle
settings={settings}
settingPath={['missingDescriptionBoostModal']}
onChange={onToggleChange}
/>
</ListItem>
<ListItem
label={
<FormattedMessage