nicolium: add a toggle for the new modal lol
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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}`);
|
||||
});
|
||||
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user