small cleanup

This commit is contained in:
Henry Jameson 2026-06-04 19:10:03 +03:00
commit aa5757d603
2 changed files with 3 additions and 3 deletions

View file

@ -139,7 +139,7 @@ const EmojiPicker = {
}, },
components: { components: {
StickerPicker: defineAsyncComponent( StickerPicker: defineAsyncComponent(
() => import('../sticker_picker/sticker_picker.vue'), () => import('src/components/sticker_picker/sticker_picker.vue'),
), ),
Checkbox, Checkbox,
StillImage, StillImage,

View file

@ -3,7 +3,7 @@ import escapeHtml from 'escape-html'
import { unescape as lodashUnescape } from 'lodash' import { unescape as lodashUnescape } from 'lodash'
import punycode from 'punycode.js' import punycode from 'punycode.js'
import fileTypeService from '../file_type/file_type.service.js' import { fileType } from '../file_type/file_type.service.js'
import { isStatusNotification } from '../notification_utils/notification_utils.js' import { isStatusNotification } from '../notification_utils/notification_utils.js'
/** NOTICE! ** /** NOTICE! **
@ -304,7 +304,7 @@ export const parseAttachment = (data) => {
if (data.type !== 'unknown') { if (data.type !== 'unknown') {
output.type = data.type output.type = data.type
} else { } else {
output.type = fileTypeService.fileType(output.mimetype) output.type = fileType(output.mimetype)
} }
output.url = data.url output.url = data.url
output.large_thumb_url = data.preview_url output.large_thumb_url = data.preview_url