From 76449fb6ef9b3eb327b6d059614d0da31c9d8e1f Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 22 Apr 2024 23:39:32 +0100 Subject: [GIFs] Replace GIPHY with Tenor (#3651) * replace GIPHY with Tenor * remove "directly" wording * replace GIPHY wording * remove log --- src/lib/constants.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/lib/constants.ts') diff --git a/src/lib/constants.ts b/src/lib/constants.ts index b96529b1f..bbfdbe27f 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -90,11 +90,9 @@ export const BSKY_FEED_OWNER_DIDS = [ 'did:plc:q6gjnaw2blty4crticxkmujt', ] -export const GIPHY_API_URL = 'https://api.giphy.com' -export const GIPHY_API_KEY = Platform.select({ - ios: 'ydVxhrQkwlcUjkVKx15mF6vyaNJbMeez', - android: 'Vwj3Ib7857dj3EcIg24Hiz1LbRVdGeYF', - default: 'vyL3hQQ8AipwcmIB8kFvg0NDs9faWg7G', -}) -export const GIPHY_PRIVACY_POLICY = - 'https://support.giphy.com/hc/en-us/articles/360032872931-GIPHY-Privacy-Policy' +export const GIF_SERVICE = 'https://gifs.bsky.app' + +export const GIF_SEARCH = (params: string) => + `${GIF_SERVICE}/tenor/v2/search?${params}` +export const GIF_FEATURED = (params: string) => + `${GIF_SERVICE}/tenor/v2/featured?${params}` -- cgit 1.4.1