fix: edited posts in notifications (#189)

zio/stable
Shinigami 2022-11-27 20:46:12 +01:00 committed by GitHub
parent fa35d73d56
commit 4a3b51dca8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 0 deletions

View File

@ -41,8 +41,21 @@ const { notification } = defineProps<{
</div> </div>
<StatusCard :status="notification.status!" p3 /> <StatusCard :status="notification.status!" p3 />
</template> </template>
<template v-else-if="notification.type === 'update'">
<div flex ml-4 items-center>
<div i-ri:edit-2-fill mr-3 text-secondary />
<AccountInlineInfo :account="notification.account" mr1 />
updated their status
</div>
<StatusCard :status="notification.status!" p3 />
</template>
<template v-else-if="notification.type === 'mention' || notification.type === 'poll' || notification.type === 'status'"> <template v-else-if="notification.type === 'mention' || notification.type === 'poll' || notification.type === 'status'">
<StatusCard :status="notification.status!" p3 /> <StatusCard :status="notification.status!" p3 />
</template> </template>
<template v-else>
<div text-red font-bold>
[DEV] MISSING notification.type: '{{ notification.type }}'
</div>
</template>
</div> </div>
</template> </template>