Strip timestamp from url when resolving for OG
`Lbry.resolve` won't work with timestamps in the url.
This commit is contained in:
parent
56c39cf60e
commit
02accb5c79
1 changed files with 3 additions and 2 deletions
|
@ -23,7 +23,7 @@ const {
|
|||
} = require('../../ui/util/web');
|
||||
const { getJsBundleId } = require('../bundle-id.js');
|
||||
const { lbryProxy: Lbry } = require('../lbry');
|
||||
const { parseURI, normalizeClaimUrl } = require('./lbryURI');
|
||||
const { buildURI, parseURI, normalizeClaimUrl } = require('./lbryURI');
|
||||
const fs = require('fs');
|
||||
const moment = require('moment');
|
||||
const PAGES = require('../../ui/constants/pages');
|
||||
|
@ -363,7 +363,8 @@ async function getHtml(ctx) {
|
|||
}
|
||||
|
||||
if (!requestPath.includes('$')) {
|
||||
const claimUri = normalizeClaimUrl(requestPath.slice(1));
|
||||
const parsedUri = parseURI(normalizeClaimUrl(requestPath.slice(1)));
|
||||
const claimUri = buildURI({ ...parsedUri, startTime: undefined });
|
||||
const claim = await resolveClaimOrRedirect(ctx, claimUri);
|
||||
const referrerQuery = escapeHtmlProperty(getParameterByName('r', ctx.request.url));
|
||||
|
||||
|
|
Loading…
Reference in a new issue