update iframe type + sentry

This commit is contained in:
Thomas Zarebczan 2022-03-02 12:45:26 -05:00
parent 2eae20f0bd
commit a01e4bad78
No known key found for this signature in database
GPG key ID: 767B41E1BB7346F2
3 changed files with 6 additions and 5 deletions

View file

@ -1,4 +1,4 @@
[defaults]
url = https://sentry.lbry.tech/
org = lbry
project = lbry-desktop-web
url = https://sentry.odysee.tv/
org = odysee
project = odysee-web

View file

@ -55,7 +55,7 @@ import apiPublishCallViaWeb from 'web/setup/publish';
// If it's caught by componentDidCatch in component/errorBoundary, it will not bubble up to this error reporter
if (process.env.NODE_ENV === 'production') {
Sentry.init({
dsn: 'https://1f3c88e2e4b341328a638e138a60fb73@sentry.lbry.tech/2',
dsn: 'https://1f3c88e2e4b341328a638e138a60fb73@sentry.odysee.tv/2',
whitelistUrls: [/\/public\/ui.js/],
});
}

View file

@ -219,7 +219,8 @@ function buildClaimOgMetadata(uri, claim, overrideOptions = {}, referrerQuery) {
const videoUrl = generateEmbedUrl(claim.name, claim.claim_id);
head += `<meta property="og:video" content="${videoUrl}" />`;
head += `<meta property="og:video:secure_url" content="${videoUrl}" />`;
head += `<meta property="og:video:type" content="${mediaType}" />`;
// type text/html since we use embeds
head += `<meta property="og:video:type" content="text/html" />`;
if (channel) {
head += `<meta name="og:video:series" content="${channel}"/>`;
}