perf: replace parse5
with ultrahtml
(#336)
This commit is contained in:
parent
04615e443e
commit
1c0f8b0147
8 changed files with 94 additions and 143 deletions
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue