(c: Context)
| 7 | getGIFTranscodeDomainCore(twitterId, Constants.GIF_TRANSCODE_DOMAIN_LIST); |
| 8 | |
| 9 | export const shouldTranscodeGif = (c: Context) => { |
| 10 | return ( |
| 11 | experimentCheck(Experiment.TRANSCODE_GIFS, !!Constants.GIF_TRANSCODE_DOMAIN_LIST) && |
| 12 | !c.req.header('user-agent')?.includes('TelegramBot') && |
| 13 | !Constants.OLD_EMBED_DOMAINS.includes(new URL(c.req.url).hostname) && |
| 14 | !Constants.API_HOST_LIST.includes(new URL(c.req.url).hostname) && |
| 15 | !Constants.BLUESKY_API_HOST_LIST.includes(new URL(c.req.url).hostname) |
| 16 | ); |
| 17 | }; |
no test coverage detected