mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #208 from omnivore-app/fix/rm-highlight-previews
Dont try to generate highlight URL previews until share is re-enabled
This commit is contained in:
commit
83241477a8
1 changed files with 16 additions and 12 deletions
|
|
@ -67,18 +67,22 @@ const generateHighlightPreviewImage = (
|
|||
highlight.shortId
|
||||
}`
|
||||
|
||||
axios.get(previewImageGenerationUrl).catch((err) => {
|
||||
log.warning(`Preview image generation request failed`, {
|
||||
axiosError: JSON.stringify(err),
|
||||
highlight,
|
||||
labels: {
|
||||
source: 'resolver',
|
||||
resolver: 'setShareHighlightResolver',
|
||||
articleId: highlight.articleId,
|
||||
userId: highlight.userId,
|
||||
},
|
||||
})
|
||||
})
|
||||
//
|
||||
// This is commented out until we re-enable sharing
|
||||
// highlights.
|
||||
//
|
||||
// axios.get(previewImageGenerationUrl).catch((err) => {
|
||||
// log.warning(`Preview image generation request failed`, {
|
||||
// axiosError: JSON.stringify(err),
|
||||
// highlight,
|
||||
// labels: {
|
||||
// source: 'resolver',
|
||||
// resolver: 'setShareHighlightResolver',
|
||||
// articleId: highlight.articleId,
|
||||
// userId: highlight.userId,
|
||||
// },
|
||||
// })
|
||||
// })
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue