Fallback to domain to url if no title

This commit is contained in:
Hongbo Wu 2022-06-09 11:30:13 +08:00
parent 309c581cf5
commit d1d18315c8

View file

@ -258,7 +258,9 @@ export const createArticleResolver = authorized<
title ||
parsedContent?.title ||
preparedDocument?.pageInfo.title ||
croppedPathname,
croppedPathname ||
parsedContent?.siteName ||
url,
author: parsedContent?.byline,
url: normalizeUrl(canonicalUrl || url, {
stripHash: true,