fix(annotator): add page number in highlight export to Readwise (#3409)

This commit is contained in:
Huang Xin
2026-02-28 16:45:09 +08:00
committed by GitHub
parent f3ad97b989
commit d8e0ceeff1
@@ -61,8 +61,8 @@ export class ReadwiseClient {
source_type: 'readest',
category: 'books',
note: note.note || undefined,
location: 0,
location_type: 'none',
location: note.page,
location_type: 'page',
highlighted_at: new Date(note.createdAt).toISOString(),
highlight_url: `readest://annotation/${book.hash}/${note.id}`,
color: note.color ? (READEST_TO_READWISE_COLOR[note.color] ?? 'yellow') : 'yellow',