about summary refs log tree commit diff
path: root/src/lib/constants.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-04-22 23:39:32 +0100
committerGitHub <noreply@github.com>2024-04-22 23:39:32 +0100
commit76449fb6ef9b3eb327b6d059614d0da31c9d8e1f (patch)
treebca8fa797d3dabd5e0ca4f64a1b4f6a53f0efaa4 /src/lib/constants.ts
parent1a4e05e9f99b479c4704b77bbf6c7551b0c0886b (diff)
downloadvoidsky-76449fb6ef9b3eb327b6d059614d0da31c9d8e1f.tar.zst
[GIFs] Replace GIPHY with Tenor (#3651)
* replace GIPHY with Tenor

* remove "directly" wording

* replace GIPHY wording

* remove log
Diffstat (limited to 'src/lib/constants.ts')
-rw-r--r--src/lib/constants.ts14
1 files changed, 6 insertions, 8 deletions
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}`