mirror of
https://github.com/acid-info/logos-press-engine.git
synced 2025-02-23 06:38:27 +00:00
exclude article cover image from block search results
This commit is contained in:
parent
4a15ed7687
commit
93699b0a13
@ -16,8 +16,9 @@ export const searchBlocksBasicFilter = (
|
||||
isLongEnough(block.data as LPE.Post.TextBlock)
|
||||
)
|
||||
} else {
|
||||
// is an image
|
||||
const isPodcastImage = block.data.document.type === LPE.PostTypes.Podcast
|
||||
return !isPodcastImage
|
||||
if (isPodcastImage) return false
|
||||
// exclude it if its cover image
|
||||
return block.data.order !== 5
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user