feat: update slug2id for deleted post
This commit is contained in:
parent
c8f51a20e6
commit
72a53573cb
|
|
@ -67,7 +67,7 @@ export async function getIdBySlug(slug: string, handle: string) {
|
|||
)
|
||||
.then((res) => res.json())
|
||||
.then((note) => {
|
||||
if (note && getSlug(note) !== slug) {
|
||||
if ((note && getSlug(note) !== slug) || note.deleted) {
|
||||
cacheDelete(["slug2id", handle, slug])
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue