fix(route): line today no icon hash (#12578)

This commit is contained in:
Tony
2023-05-30 21:52:40 +08:00
committed by GitHub
parent 2479f3e995
commit a7fb3c48a3
+1 -1
View File
@@ -46,7 +46,7 @@ module.exports = async (ctx) => {
ctx.state.data = {
title: `${publisherInfo.data.name} - Line Today`,
description: publisherInfo.data.introduction,
image: `https://obs.line-scdn.net/${publisherInfo.data.icon.hash}`,
image: publisherInfo.data.icon ? `https://obs.line-scdn.net/${publisherInfo.data.icon.hash}` : undefined,
link: `${baseUrl}/${edition}/v2/publisher/${id}`,
item: items,
};