diff options
Diffstat (limited to 'packages/frontend/src/components/MkNotes.vue')
| -rw-r--r-- | packages/frontend/src/components/MkNotes.vue | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/packages/frontend/src/components/MkNotes.vue b/packages/frontend/src/components/MkNotes.vue index e03251ad4f..6c52db004b 100644 --- a/packages/frontend/src/components/MkNotes.vue +++ b/packages/frontend/src/components/MkNotes.vue @@ -22,14 +22,14 @@ SPDX-License-Identifier: AGPL-3.0-only :moveClass=" $style.transition_x_move" tag="div" > - <template v-for="(note, i) in notes" :key="note.id"> + <template v-for="note in notes" :key="note.id"> <div v-if="note._shouldInsertAd_" :class="[$style.noteWithAd, { '_gaps': !noGap }]"> - <DynamicNote :class="$style.note" :note="note" :withHardMute="true"/> + <DynamicNote :class="$style.note" :note="note as Misskey.entities.Note" :withHardMute="true"/> <div :class="$style.ad"> <MkAd :preferForms="['horizontal', 'horizontal-big']"/> </div> </div> - <DynamicNote :class="$style.note" :note="note" :withHardMute="true"/> + <DynamicNote v-else :class="$style.note" :note="note as Misskey.entities.Note" :withHardMute="true"/> </template> </component> </template> @@ -37,6 +37,7 @@ SPDX-License-Identifier: AGPL-3.0-only </template> <script lang="ts" setup> +import * as Misskey from 'misskey-js'; import { useTemplateRef, TransitionGroup } from 'vue'; import type { Paging } from '@/components/MkPagination.vue'; import DynamicNote from '@/components/DynamicNote.vue'; |