remove todos
This commit is contained in:
@@ -91,8 +91,8 @@ function createKlipyApi<Input extends object>(
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the static URL for a KLIPY GIF preview image.
|
* Returns the static URL for a KLIPY GIF preview image.
|
||||||
* Currently a pass-through; will route through the bsky proxy once the
|
* KLIPY images are served directly from their CDN (static.klipy.com),
|
||||||
* backend proxy PR (tango) is deployed.
|
* unlike Tenor which routes through t.gifs.bsky.app.
|
||||||
*/
|
*/
|
||||||
export function klipyStaticUrl(gifUrl: string) {
|
export function klipyStaticUrl(gifUrl: string) {
|
||||||
try {
|
try {
|
||||||
@@ -108,10 +108,6 @@ export function klipyStaticUrl(gifUrl: string) {
|
|||||||
* Maps a native KLIPY gif object onto the Tenor-shaped `Gif` type so
|
* Maps a native KLIPY gif object onto the Tenor-shaped `Gif` type so
|
||||||
* downstream consumers (resolveGif, composer drafts, ExternalEmbed, etc.)
|
* downstream consumers (resolveGif, composer drafts, ExternalEmbed, etc.)
|
||||||
* continue to work unchanged.
|
* continue to work unchanged.
|
||||||
*
|
|
||||||
* NOTE: the exact KLIPY response shape needs to be verified against the
|
|
||||||
* backend proxy once the tango PR is deployed — some fields here are
|
|
||||||
* best-effort based on what's documented today.
|
|
||||||
*/
|
*/
|
||||||
function normalizeKlipyGif(k: KlipyGif): Gif {
|
function normalizeKlipyGif(k: KlipyGif): Gif {
|
||||||
const toMediaObject = (v: KlipyFileVariant) => ({
|
const toMediaObject = (v: KlipyFileVariant) => ({
|
||||||
|
|||||||
@@ -105,9 +105,8 @@ export function tenorUrlToBskyGifUrl(tenorUrl: string) {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the appropriate URL for a GIF preview image.
|
* Returns the appropriate URL for a GIF preview image.
|
||||||
* Rewrites Tenor URLs through the bsky proxy; KLIPY URLs pass through
|
* Rewrites Tenor URLs through the bsky proxy (t.gifs.bsky.app);
|
||||||
* directly (will route through the bsky proxy once the tango backend-proxy
|
* KLIPY URLs pass through directly to their CDN.
|
||||||
* PR is deployed).
|
|
||||||
*/
|
*/
|
||||||
export function gifPreviewUrl(gifUrl: string) {
|
export function gifPreviewUrl(gifUrl: string) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user