diff options
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/components/notification.vue | 6 | ||||
| -rw-r--r-- | src/client/sw/compose-notification.ts | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/client/components/notification.vue b/src/client/components/notification.vue index 0c6be82bb8..2fe8500891 100644 --- a/src/client/components/notification.vue +++ b/src/client/components/notification.vue @@ -61,12 +61,12 @@ import { defineComponent } from 'vue'; import { faIdCardAlt, faPlus, faQuoteLeft, faQuoteRight, faRetweet, faReply, faAt, faCheck, faPollH } from '@fortawesome/free-solid-svg-icons'; import { faClock } from '@fortawesome/free-regular-svg-icons'; -import noteSummary from '../../misc/get-note-summary'; +import { getNoteSummary } from '../../misc/get-note-summary'; import XReactionIcon from './reaction-icon.vue'; import MkFollowButton from './follow-button.vue'; import notePage from '../filters/note'; import { userPage } from '../filters/user'; -import { locale } from '../i18n'; +import { i18n } from '@/i18n'; import * as os from '@/os'; export default defineComponent({ @@ -91,7 +91,7 @@ export default defineComponent({ }, data() { return { - getNoteSummary: (text: string) => noteSummary(text, locale), + getNoteSummary: (text: string) => getNoteSummary(text, i18n.locale), followRequestDone: false, groupInviteDone: false, connection: null, diff --git a/src/client/sw/compose-notification.ts b/src/client/sw/compose-notification.ts index 0863d7ef8b..17421db5c8 100644 --- a/src/client/sw/compose-notification.ts +++ b/src/client/sw/compose-notification.ts @@ -1,4 +1,4 @@ -import getNoteSummary from '../../misc/get-note-summary'; +import { getNoteSummary } from '../../misc/get-note-summary'; import getUserName from '../../misc/get-user-name'; import { i18n } from '@/sw/i18n'; |