feat(account): predict relationship from context
This commit is contained in:
parent
b4cda4338f
commit
88731ee18d
6 changed files with 20 additions and 10 deletions
|
@ -3,6 +3,7 @@ import type { Paginator, mastodon } from 'masto'
|
|||
|
||||
const { paginator } = defineProps<{
|
||||
paginator: Paginator<mastodon.v1.Account[], mastodon.DefaultPaginationParams>
|
||||
relationshipContext?: 'followedBy' | 'following'
|
||||
}>()
|
||||
</script>
|
||||
|
||||
|
@ -11,6 +12,7 @@ const { paginator } = defineProps<{
|
|||
<template #default="{ item }">
|
||||
<AccountCard
|
||||
:account="item"
|
||||
:relationship-context="relationshipContext"
|
||||
hover-card
|
||||
border="b base" py2 px4
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue