Merge pull request #830 from jessopb/fixRedirect

fixes channel claim issue introduced by file extension fix
This commit is contained in:
Shawn K 2018-12-17 19:55:03 -06:00 committed by GitHub
commit 7a80ec1836
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ module.exports = async (data) => {
let lbrynetFileExt = null; let lbrynetFileExt = null;
if (!data.fileExt) { if (!data.fileExt) {
lbrynetClaimResult = await getClaim(lbrynetUri).catch(() => { return 'invalid URI' }); lbrynetClaimResult = await getClaim(lbrynetUri).catch(() => { return 'invalid URI' });
lbrynetFileExt = lbrynetClaimResult && lbrynetClaimResult.file_name.split('.').slice(-1).pop(); lbrynetFileExt = lbrynetClaimResult && lbrynetClaimResult.file_name && lbrynetClaimResult.file_name.split('.').slice(-1).pop();
} }
// TODO verify that "generated_x" does anything at all // TODO verify that "generated_x" does anything at all