mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Use siteName in search result in web
This commit is contained in:
parent
2aadd6d200
commit
b4ec812f41
1 changed files with 3 additions and 1 deletions
|
|
@ -15,7 +15,9 @@ const siteName = (originalArticleUrl: string, itemUrl: string): string => {
|
|||
}
|
||||
|
||||
export function LinkedItemCard(props: LinkedItemCardProps): JSX.Element {
|
||||
const originText = siteName(props.item.originalArticleUrl, props.item.url)
|
||||
const originText =
|
||||
props.item.siteName ||
|
||||
siteName(props.item.originalArticleUrl, props.item.url)
|
||||
|
||||
if (props.item.pageType === PageType.HIGHLIGHTS) {
|
||||
return <HighlightItemCard {...props} />
|
||||
|
|
|
|||
Loading…
Reference in a new issue