mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-07 19:40:54 +01:00
Fix oembed
This commit is contained in:
parent
84b5853a59
commit
c1cf77fb43
3 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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));
|
||||||
|
|
||||||
|
|
|
@ -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 = {};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue