mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
only recommend highlights created by the user
This commit is contained in:
parent
25842270d7
commit
918ada2100
1 changed files with 2 additions and 1 deletions
|
|
@ -204,8 +204,9 @@ export const recommendResolver = authorized<
|
|||
}
|
||||
}
|
||||
|
||||
// only recommend highlights created by the user
|
||||
const recommendedHighlightIds = input.recommendedWithHighlights
|
||||
? page.highlights?.map((h) => h.id)
|
||||
? page.highlights?.filter((h) => h.userId === uid)?.map((h) => h.id)
|
||||
: undefined
|
||||
|
||||
const exp = Math.floor(Date.now() / 1000) + 60 * 60 * 24 // 1 day
|
||||
|
|
|
|||
Loading…
Reference in a new issue