diff --git a/packages/frontend/src/components/MkFlashPreview.vue b/packages/frontend/src/components/MkFlashPreview.vue index 8a2a4386240a44ad39ff4ca4f45c960e90e4832a..85f79176589bbcca9fb862c5ea9ca23bb08b9723 100644 --- a/packages/frontend/src/components/MkFlashPreview.vue +++ b/packages/frontend/src/components/MkFlashPreview.vue @@ -14,7 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only </p> <footer> <img class="icon" :src="flash.user.avatarUrl"/> - <p>{{ userName(flash.user) }}</p> + <MkUserName :key="flash.user.id" :user="flash.user"/> </footer> </article> </MkA> @@ -23,7 +23,6 @@ SPDX-License-Identifier: AGPL-3.0-only <script lang="ts" setup> import { } from 'vue'; import * as Misskey from 'misskey-js'; -import { userName } from '@/filters/user.js'; const props = defineProps<{ flash: Misskey.entities.Flash; diff --git a/packages/frontend/src/components/MkPagePreview.vue b/packages/frontend/src/components/MkPagePreview.vue index 8559d4b96e72158cd191087a882d2a2e8fef1474..361cc520de2e16f3e44f450d059e3940f5206904 100644 --- a/packages/frontend/src/components/MkPagePreview.vue +++ b/packages/frontend/src/components/MkPagePreview.vue @@ -21,7 +21,7 @@ SPDX-License-Identifier: AGPL-3.0-only <p v-if="page.summary" :title="page.summary">{{ page.summary.length > 85 ? page.summary.slice(0, 85) + '…' : page.summary }}</p> <footer> <img v-if="page.user.avatarUrl" class="icon" :src="page.user.avatarUrl"/> - <p>{{ userName(page.user) }}</p> + <MkUserName :key="page.user.id" :user="page.user"/> </footer> </article> </MkA> @@ -30,7 +30,6 @@ SPDX-License-Identifier: AGPL-3.0-only <script lang="ts" setup> import { } from 'vue'; import * as Misskey from 'misskey-js'; -import { userName } from '@/filters/user.js'; import MediaImage from '@/components/MkMediaImage.vue'; const props = defineProps<{