fix: fix type errors
This commit is contained in:
parent
9fb52702e5
commit
ce418d5749
2 changed files with 5 additions and 7 deletions
|
|
@ -227,7 +227,7 @@ function showFavoritedAndBoostedBy() {
|
|||
|
||||
<CommonDropdownItem
|
||||
is="button"
|
||||
v-if="currentUser && (status.account.id === currentUser.account.id || status.mentions.some(m => m.id === currentUser!.account.id))"
|
||||
v-if="currentUser && (status.account.id === currentUser.account.id || status.mentions.some((m: mastodon.v1.StatusMention) => m.id === currentUser!.account.id))"
|
||||
:text="status.muted ? $t('menu.unmute_conversation') : $t('menu.mute_conversation')"
|
||||
:icon="status.muted ? 'i-ri:eye-line' : 'i-ri:eye-off-line'"
|
||||
:command="command"
|
||||
|
|
|
|||
|
|
@ -1,15 +1,13 @@
|
|||
<script setup lang="ts">
|
||||
import type { mastodon } from 'masto'
|
||||
import { getEmojiAttributes } from '~/config/emojis'
|
||||
|
||||
const props = defineProps<{
|
||||
status: Status
|
||||
status: mastodon.v1.Status
|
||||
details?: boolean
|
||||
}>()
|
||||
|
||||
const {
|
||||
status,
|
||||
} = useStatusActions(props)
|
||||
|
||||
const { status }: { status: mastodon.v1.Status } = useStatusActions(props)
|
||||
function isCustomEmoji(emoji: EmojiReaction) {
|
||||
return !!emoji.staticUrl
|
||||
}
|
||||
|
|
@ -18,7 +16,7 @@ function isCustomEmoji(emoji: EmojiReaction) {
|
|||
<template>
|
||||
<div flex flex-wrap gap-1 class="status-actions">
|
||||
<button
|
||||
v-for="(emoji, i) in status?.emojiReactions ?? []"
|
||||
v-for="(emoji, i) in status.emojiReactions ?? []"
|
||||
:key="i"
|
||||
flex gap-1 p="block-1 inline-2" text-secondary btn-base rounded-1
|
||||
:class="emoji.me ? 'b-1 b-primary bg-primary-fade' : 'b b-white bg-gray-1 hover:bg-gray-1 hover:b-gray'"
|
||||
|
|
|
|||
Loading…
Reference in a new issue