refactor: sync masto (#1121)
This commit is contained in:
parent
eb1f769e32
commit
4422a57f49
81 changed files with 397 additions and 367 deletions
|
@ -6,7 +6,7 @@ const { account } = defineProps<{
|
|||
command?: boolean
|
||||
}>()
|
||||
|
||||
const masto = useMasto()
|
||||
const { client } = $(useMasto())
|
||||
|
||||
const { t } = useI18n()
|
||||
|
||||
|
@ -46,7 +46,7 @@ function previewAvatar() {
|
|||
async function toggleNotify() {
|
||||
relationship!.notifying = !relationship!.notifying
|
||||
try {
|
||||
const newRel = await masto.v1.accounts.follow(account.id, { notify: relationship!.notifying })
|
||||
const newRel = await client.v1.accounts.follow(account.id, { notify: relationship!.notifying })
|
||||
Object.assign(relationship!, newRel)
|
||||
}
|
||||
catch {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue