summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-12-28 23:05:30 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-12-28 23:05:30 +0900
commit5c490e75213f0f876c35ab4fb6cf71eefa3afab7 (patch)
tree0c6a4ec4b7e7aae785cbcf013cf8f4c37f97dfe9 /src/client/components
parent12.64.0 (diff)
downloadsharkey-5c490e75213f0f876c35ab4fb6cf71eefa3afab7.tar.gz
sharkey-5c490e75213f0f876c35ab4fb6cf71eefa3afab7.tar.bz2
sharkey-5c490e75213f0f876c35ab4fb6cf71eefa3afab7.zip
Bug fix and refactoring
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/notification.vue6
1 files changed, 3 insertions, 3 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,