patch-rss-bug

This commit is contained in:
zeppi 2021-07-09 16:52:12 -04:00 committed by infinite-persistence
parent 70a1ed6934
commit af7b553da3
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0

View file

@ -150,6 +150,6 @@ export const generateShareUrl = (
export const generateRssUrl = (domain, lbryUrl) => {
const { channelName, channelClaimId } = parseURI(lbryUrl);
const url = `${domain}/$/rss/@${channelName}/${channelClaimId.slice(0, 2)}`;
const url = `${domain}/$/rss/@${channelName}${channelClaimId ? `/${channelClaimId.slice(0, 2)}` : ''}`;
return url;
};