Fix oembed

This commit is contained in:
dangered wolf 2023-11-10 17:06:17 -05:00
parent 84b5853a59
commit c1cf77fb43
No known key found for this signature in database
GPG key ID: 41E4D37680ED8B58
3 changed files with 2 additions and 3 deletions

View file

@ -24,7 +24,7 @@ const Experiments: { [key in Experiment]: ExperimentConfig } = {
[Experiment.TWEET_DETAIL_API]: { [Experiment.TWEET_DETAIL_API]: {
name: 'Tweet detail API', name: 'Tweet detail API',
description: 'Use Tweet Detail API (where available with elongator)', description: 'Use Tweet Detail API (where available with elongator)',
percentage: 0.4 percentage: 0.5
} }
}; };

View file

@ -43,7 +43,7 @@ twitter.get(
twitter.get('/version', versionRoute); twitter.get('/version', versionRoute);
twitter.get('/set_base_redirect', setRedirectRequest); twitter.get('/set_base_redirect', setRedirectRequest);
twitter.get('/oembed', oembed); twitter.get('/owoembed', oembed);
twitter.get('/robots.txt', async c => c.text(Strings.ROBOTS_TXT)); twitter.get('/robots.txt', async c => c.text(Strings.ROBOTS_TXT));

View file

@ -7,7 +7,6 @@ import { Strings } from '../../../strings';
/* Handler for status (Tweet) request */ /* Handler for status (Tweet) request */
export const statusRequest = async (c: Context) => { export const statusRequest = async (c: Context) => {
const { prefix, handle, id, mediaNumber, language } = c.req.param(); const { prefix, handle, id, mediaNumber, language } = c.req.param();
console.log('req', JSON.stringify(c.req))
const url = new URL(c.req.url); const url = new URL(c.req.url);
const flags: InputFlags = {}; const flags: InputFlags = {};