From 968db6652a59375fcd989df452dcdd20711ed3d3 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Fri, 10 Jun 2022 13:12:53 -0400 Subject: [PATCH] Fix crash on direct load (anonymous only?) --- web/src/metadata/googleVideo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/metadata/googleVideo.js b/web/src/metadata/googleVideo.js index 69a245303..f563a523b 100644 --- a/web/src/metadata/googleVideo.js +++ b/web/src/metadata/googleVideo.js @@ -33,7 +33,7 @@ function truncateDescription(description, maxChars = 200) { const Generate = { author: (claim) => { const channelName = claim?.signing_channel?.value?.title || claim?.signing_channel?.name; - const channelUrl = lbryToOdyseeUrl(claim.signing_channel); + const channelUrl = claim?.signing_channel && lbryToOdyseeUrl(claim.signing_channel); if (channelName && channelUrl) { return { '@type': 'Person', name: channelName, url: channelUrl }; }