perf: replace parse5 with ultrahtml (#336)

This commit is contained in:
Daniel Roe 2022-12-04 22:10:10 +00:00 committed by GitHub
parent 04615e443e
commit 1c0f8b0147
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 94 additions and 143 deletions

View file

@ -68,7 +68,7 @@ const deleteAndRedraft = async () => {
}
const { text } = await useMasto().statuses.remove(status.id)
openPublishDialog('dialog', getDraftFromStatus(status, text), true)
openPublishDialog('dialog', await getDraftFromStatus(status, text), true)
}
const reply = () => {
@ -81,9 +81,9 @@ const reply = () => {
}
}
function editStatus() {
async function editStatus() {
openPublishDialog(`edit-${status.id}`, {
...getDraftFromStatus(status),
...await getDraftFromStatus(status),
editingStatus: status,
})
}