()
const prefersReducedMotion = usePreferredReducedMotion()
const isAudio = computed(() => attachment.type === 'audio')
const isVideo = computed(() => attachment.type === 'video')
+const isGif = computed(() => attachment.type === 'gifv')
const enableAutoplay = usePreferences('enableAutoplay')
@@ -164,7 +165,7 @@ watch(shouldLoadAttachment, () => {
-
+
diff --git a/composables/settings/definition.ts b/composables/settings/definition.ts
index 15afdf4b..54c7b9cc 100644
--- a/composables/settings/definition.ts
+++ b/composables/settings/definition.ts
@@ -9,6 +9,7 @@ export type ColorMode = 'light' | 'dark' | 'system'
export interface PreferencesSettings {
hideAltIndicatorOnPosts: boolean
+ hideGifIndicatorOnPosts: boolean
hideBoostCount: boolean
hideReplyCount: boolean
hideFavoriteCount: boolean
@@ -64,6 +65,7 @@ export function getDefaultLanguage(languages: string[]) {
export const DEFAULT__PREFERENCES_SETTINGS: PreferencesSettings = {
hideAltIndicatorOnPosts: false,
+ hideGifIndicatorOnPosts: false,
hideBoostCount: false,
hideReplyCount: false,
hideFavoriteCount: false,
diff --git a/locales/en.json b/locales/en.json
index 397f9a08..74e124a4 100644
--- a/locales/en.json
+++ b/locales/en.json
@@ -542,6 +542,7 @@
"hide_boost_count": "Hide boost count",
"hide_favorite_count": "Hide favorite count",
"hide_follower_count": "Hide following/follower count",
+ "hide_gif_indi_on_posts": "Hide gif indicator on posts",
"hide_news": "Hide news",
"hide_reply_count": "Hide reply count",
"hide_tag_hover_card": "Hide tag hover card",
@@ -614,6 +615,7 @@
"favourited_by": "Favorited By",
"filter_hidden_phrase": "Filtered by",
"filter_show_anyway": "Show anyway",
+ "gif": "GIF",
"img_alt": {
"ALT": "ALT",
"desc": "Description",
diff --git a/pages/settings/preferences/index.vue b/pages/settings/preferences/index.vue
index b3a86c2f..b0d6d235 100644
--- a/pages/settings/preferences/index.vue
+++ b/pages/settings/preferences/index.vue
@@ -21,6 +21,12 @@ const userSettings = useUserSettings()
>
{{ $t('settings.preferences.hide_alt_indi_on_posts') }}
+
+ {{ $t('settings.preferences.hide_gif_indi_on_posts') }}
+