diff --git a/packages/web/components/patterns/ArticleSubtitle.tsx b/packages/web/components/patterns/ArticleSubtitle.tsx index d04e32ca3..f7e52bda8 100644 --- a/packages/web/components/patterns/ArticleSubtitle.tsx +++ b/packages/web/components/patterns/ArticleSubtitle.tsx @@ -19,7 +19,10 @@ export function ArticleSubtitle(props: ArticleSubtitleProps): JSX.Element { return ( - {subtitle} {subtitle && }{' '} + {subtitle}{' '} + {subtitle && !shouldHideUrl(props.href) && ( + + )}{' '} {!props.hideButton && !shouldHideUrl(props.href) && ( <> { if (queryValue.startsWith('#')) { debouncedFetchSearchResults( @@ -163,7 +157,6 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element { }, [router.asPath]) const libraryItems = useMemo(() => { - console.log('library items: ', itemsPages) const items = itemsPages?.pages .flatMap((ad: LibraryItems) => { @@ -1027,8 +1020,6 @@ export function LibraryItemsLayout( isSessionStorage: false, }) - console.log('props.isValidating: ', props.isValidating) - return ( <> { return false } +const shouldHideSiteName = (siteName: string) => { + const hideNames = ['storage.googleapis.com', 'omnivore.app'] + if (hideNames.indexOf(siteName) != -1) { + return true + } + return false +} + export const siteName = ( originalArticleUrl: string, itemUrl: string, siteName?: string ): string => { if (siteName) { - return shouldHideUrl(siteName) ? '' : siteName + return shouldHideSiteName(siteName) ? '' : siteName } - if (shouldHideUrl(originalArticleUrl)) { return '' } diff --git a/packages/web/pages/[username]/[slug]/debug.tsx b/packages/web/pages/[username]/[slug]/debug.tsx index 0f4c86eb1..a571a28e1 100644 --- a/packages/web/pages/[username]/[slug]/debug.tsx +++ b/packages/web/pages/[username]/[slug]/debug.tsx @@ -50,6 +50,8 @@ export default function Debug(): JSX.Element { value: article.originalArticleUrl, }) result.push({ name: 'author', value: article.author ?? 'null' }) + result.push({ name: 'siteName', value: article.siteName ?? 'null' }) + result.push({ name: 'image', value: article.image ?? 'null' }) result.push({ name: 'savedAt', value: article.savedAt }) result.push({ name: 'createdAt', value: article.createdAt })