Fix crash on direct load (anonymous only?)

This commit is contained in:
Thomas Zarebczan 2022-06-10 13:12:53 -04:00
parent 87c94e3c1c
commit 968db6652a
No known key found for this signature in database
GPG key ID: 767B41E1BB7346F2

View file

@ -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 };
}