refactor: sync masto (#1121)
This commit is contained in:
parent
eb1f769e32
commit
4422a57f49
81 changed files with 397 additions and 367 deletions
|
@ -19,8 +19,8 @@ export async function updateCustomEmojis() {
|
|||
if (Date.now() - currentCustomEmojis.value.lastUpdate < TTL)
|
||||
return
|
||||
|
||||
const masto = useMasto()
|
||||
const emojis = await masto.v1.customEmojis.list()
|
||||
const { client } = $(useMasto())
|
||||
const emojis = await client.v1.customEmojis.list()
|
||||
Object.assign(currentCustomEmojis.value, {
|
||||
lastUpdate: Date.now(),
|
||||
emojis,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue