Dont try to generate highlight URL previews until share is re-enabled

This commit is contained in:
Jackson Harper 2022-03-09 09:49:03 -08:00
parent a5a42a36e7
commit b0fe9059a9

View file

@ -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,
// },
// })
// })
})
}