mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
do not create thumbnail task if the item already has a thumbnail
This commit is contained in:
parent
5136874372
commit
8a3b50f07f
1 changed files with 2 additions and 2 deletions
|
|
@ -168,8 +168,8 @@ export const savePage = async (
|
|||
)
|
||||
}
|
||||
|
||||
// we don't want to create thumbnail for imported pages
|
||||
if (!isImported) {
|
||||
// we don't want to create thumbnail for imported pages and pages that already have thumbnail
|
||||
if (!isImported && !parseResult.parsedContent?.previewImage) {
|
||||
try {
|
||||
// create a task to update thumbnail and pre-cache all images
|
||||
const taskId = await enqueueThumbnailTask(user.id, slug)
|
||||
|
|
|
|||
Loading…
Reference in a new issue