mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #1371 from omnivore-app/fix/readwise-integration
Fix readwise api error when image_url is empty by removing image_url from api payload
This commit is contained in:
commit
a29f0df35e
1 changed files with 2 additions and 2 deletions
|
|
@ -69,11 +69,11 @@ const pageToReadwiseHighlight = (page: Page): ReadwiseHighlight[] => {
|
|||
return {
|
||||
text: highlight.quote,
|
||||
title: page.title,
|
||||
author: page.author,
|
||||
author: page.author || undefined,
|
||||
highlight_url: getHighlightUrl(page.slug, highlight.id),
|
||||
highlighted_at: new Date(highlight.createdAt).toISOString(),
|
||||
category: 'articles',
|
||||
image_url: page.image,
|
||||
image_url: page.image || undefined,
|
||||
location: highlight.highlightPositionPercent || undefined,
|
||||
location_type: 'order',
|
||||
note: highlight.annotation || undefined,
|
||||
|
|
|
|||
Loading…
Reference in a new issue