mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add author
This commit is contained in:
parent
39778feb88
commit
44178c1c1e
1 changed files with 20 additions and 1 deletions
|
|
@ -53,6 +53,13 @@ interface NotionPage {
|
|||
}
|
||||
]
|
||||
}
|
||||
Author: {
|
||||
rich_text: Array<{
|
||||
text: {
|
||||
content: string
|
||||
}
|
||||
}>
|
||||
}
|
||||
'Original URL': {
|
||||
url: string | null
|
||||
}
|
||||
|
|
@ -185,6 +192,15 @@ export class NotionClient implements IntegrationClient {
|
|||
},
|
||||
],
|
||||
},
|
||||
Author: {
|
||||
rich_text: [
|
||||
{
|
||||
text: {
|
||||
content: item.author || 'unknown',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
'Original URL': {
|
||||
url: item.originalUrl,
|
||||
},
|
||||
|
|
@ -210,7 +226,7 @@ export class NotionClient implements IntegrationClient {
|
|||
},
|
||||
{
|
||||
text: {
|
||||
content: highlight.annotation || '',
|
||||
content: `\n${highlight.annotation || ''}`,
|
||||
},
|
||||
annotations: {
|
||||
italic: true,
|
||||
|
|
@ -264,6 +280,9 @@ export class NotionClient implements IntegrationClient {
|
|||
Title: {
|
||||
title: {},
|
||||
},
|
||||
Author: {
|
||||
rich_text: {},
|
||||
},
|
||||
'Original URL': {
|
||||
url: {},
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue