diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 4793985249..3b7f08dcdb 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -57,9 +57,9 @@ const Attachment = { } }, openModal (event) { - const modalTypes = this.$store.state.config.playVideosInline - ? ['image'] - : ['image', 'video'] + const modalTypes = this.$store.state.config.playVideosInModal + ? ['image', 'video'] + : ['image'] if (fileTypeService.fileMatchesSomeType(modalTypes, this.attachment) || this.usePlaceHolder ) { diff --git a/src/components/post_status_form/post_status_form.js b/src/components/post_status_form/post_status_form.js index 8a4e2489fb..88bc736f93 100644 --- a/src/components/post_status_form/post_status_form.js +++ b/src/components/post_status_form/post_status_form.js @@ -16,7 +16,7 @@ const buildMentionsString = ({user, attentions}, currentUser) => { return `@${attention.screen_name}` }) - return mentions.join(' ') + ' ' + return mentions.length > 0 ? mentions.join(' ') + ' ' : '' } const PostStatusForm = { diff --git a/src/components/settings/settings.js b/src/components/settings/settings.js index 06011e7c9f..8d1384855e 100644 --- a/src/components/settings/settings.js +++ b/src/components/settings/settings.js @@ -1,5 +1,5 @@ /* eslint-env browser */ -import TabSwitcher from '../tab_switcher/tab_switcher.jsx' +import TabSwitcher from '../tab_switcher/tab_switcher.js' import StyleSwitcher from '../style_switcher/style_switcher.vue' import InterfaceLanguageSwitcher from '../interface_language_switcher/interface_language_switcher.vue' import { filter, trim } from 'lodash' @@ -66,7 +66,7 @@ const settings = { Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'webkitAudioDecodedByteCount') || // Future spec, still not supported in Nightly 63 as of 08/2018 Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype, 'audioTracks'), - playVideosInline: user.playVideosInline, + playVideosInModal: user.playVideosInModal, useContainFit: user.useContainFit } }, @@ -164,8 +164,8 @@ const settings = { this.$store.dispatch('setOption', { name: 'webPushNotifications', value }) if (value) this.$store.dispatch('registerPushNotifications') }, - playVideosInline (value) { - this.$store.dispatch('setOption', { name: 'playVideosInline', value }) + playVideosInModal (value) { + this.$store.dispatch('setOption', { name: 'playVideosInModal', value }) }, useContainFit (value) { this.$store.dispatch('setOption', { name: 'useContainFit', value }) diff --git a/src/components/settings/settings.vue b/src/components/settings/settings.vue index 08d659d64c..9953780f23 100644 --- a/src/components/settings/settings.vue +++ b/src/components/settings/settings.vue @@ -146,8 +146,8 @@
{{$t('settings.avatar_size_instruction')}}
{{$t('settings.current_avatar')}}
{{$t('settings.set_new_avatar')}}
@@ -130,7 +131,7 @@{{$t('settings.import_followers_from_a_csv_file')}}
- @@ -179,5 +180,9 @@ font-size: 1.5em; margin: 0.25em; } + + .name-changer { + width: 100%; + } } diff --git a/src/i18n/en.json b/src/i18n/en.json index b1356aaa11..d3b0e407ba 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -118,6 +118,7 @@ "delete_account_description": "Permanently delete your account and all your messages.", "delete_account_error": "There was an issue deleting your account. If this persists please contact your instance administrator.", "delete_account_instructions": "Type your password in the input below to confirm account deletion.", + "avatar_size_instruction": "The recommended minimum size for avatar images is 150x150 pixels.", "export_theme": "Save preset", "filtering": "Filtering", "filtering_explanation": "All statuses containing these words will be muted, one per line", @@ -150,7 +151,7 @@ "lock_account_description": "Restrict your account to approved followers only", "loop_video": "Loop videos", "loop_video_silent_only": "Loop only videos without sound (i.e. Mastodon's \"gifs\")", - "play_videos_inline": "Play videos directly on timeline", + "play_videos_in_modal": "Play videos directly in the media viewer", "use_contain_fit": "Don't crop the attachment in thumbnails", "name": "Name", "name_bio": "Name & Bio", diff --git a/src/i18n/fi.json b/src/i18n/fi.json index 122016b025..0d62f29588 100644 --- a/src/i18n/fi.json +++ b/src/i18n/fi.json @@ -150,7 +150,7 @@ "lock_account_description": "Vain erikseen hyväksytyt käyttäjät voivat seurata tiliäsi", "loop_video": "Uudelleentoista videot", "loop_video_silent_only": "Uudelleentoista ainoastaan äänettömät videot (Video-\"giffit\")", - "play_videos_inline": "Toista videot suoraan aikajanalla", + "play_videos_in_modal": "Toista videot modaalissa", "use_contain_fit": "Älä rajaa liitteitä esikatselussa", "name": "Nimi", "name_bio": "Nimi ja kuvaus", diff --git a/src/services/entity_normalizer/entity_normalizer.service.js b/src/services/entity_normalizer/entity_normalizer.service.js index 97b0d16f27..af77467538 100644 --- a/src/services/entity_normalizer/entity_normalizer.service.js +++ b/src/services/entity_normalizer/entity_normalizer.service.js @@ -270,7 +270,7 @@ export const parseNotification = (data) => { } output.created_at = new Date(data.created_at) - output.id = String(data.id) + output.id = data.id return output } diff --git a/static/config.json b/static/config.json index aac93f7067..24e26696fa 100644 --- a/static/config.json +++ b/static/config.json @@ -19,8 +19,5 @@ "loginMethod": "password", "webPushNotifications": false, "noAttachmentLinks": false, - "nsfwCensorImage": "", - "useOneClickNsfw": true, - "playVideosInline": false, - "useContainFit": false + "nsfwCensorImage": "" }