diff --git a/.env.example b/.env.example index 4f4697d..505fdf1 100644 --- a/.env.example +++ b/.env.example @@ -5,6 +5,7 @@ MOSAIC_DOMAIN_LIST = "mosaic.fxtwitter.com" API_HOST_LIST = "api.fxtwitter.com,api-canary.fxtwitter.com" HOST_URL = "https://fxtwitter.com" REDIRECT_URL = "https://github.com/dangeredwolf/FixTweet" +EMBED_URL = "https://discord.gg/6CQTTTkGaH" SENTRY_DSN = "https://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@aaaaaa.ingest.sentry.io/69" SENTRY_AUTH_TOKEN = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" SENTRY_ORG = "dangeredwolf" diff --git a/jestconfig.json b/jestconfig.json index a389846..ab0ae3a 100644 --- a/jestconfig.json +++ b/jestconfig.json @@ -11,6 +11,7 @@ "API_HOST_LIST": "api.fxtwitter.com", "HOST_URL": "https://fxtwitter.com", "REDIRECT_URL": "https://github.com/dangeredwolf/FixTweet", + "EMBED_URL": "https://discord.gg/6CQTTTkGaH", "RELEASE_NAME": "fixtweet-test", "TEST": true }, diff --git a/src/constants.ts b/src/constants.ts index bf345ad..9897caf 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -7,6 +7,7 @@ export const Constants = { MOSAIC_DOMAIN_LIST: MOSAIC_DOMAIN_LIST.split(','), API_HOST_LIST: API_HOST_LIST.split(','), HOST_URL: HOST_URL, + EMBED_URL: EMBED_URL, REDIRECT_URL: REDIRECT_URL, RELEASE_NAME: RELEASE_NAME, API_DOCS_URL: `https://github.com/dangeredwolf/FixTweet/wiki/API-Home`, diff --git a/src/env.d.ts b/src/env.d.ts index 5ef4c9d..a0a1525 100644 --- a/src/env.d.ts +++ b/src/env.d.ts @@ -2,6 +2,7 @@ declare const BRANDING_NAME: string; declare const BRANDING_NAME_DISCORD: string; declare const DIRECT_MEDIA_DOMAINS: string; declare const HOST_URL: string; +declare const EMBED_URL: string; declare const REDIRECT_URL: string; declare const MOSAIC_DOMAIN_LIST: string; declare const API_HOST_LIST: string; diff --git a/src/server.ts b/src/server.ts index dcc7706..725b0e8 100644 --- a/src/server.ts +++ b/src/server.ts @@ -119,7 +119,7 @@ router.get('/owoembed', async (request: Request) => { author )}/status/${encodeURIComponent(status)}`, provider_name: Constants.BRANDING_NAME_DISCORD, - provider_url: Constants.REDIRECT_URL, + provider_url: Constants.EMBED_URL, title: Strings.DEFAULT_AUTHOR_TEXT, type: 'link', version: '1.0' diff --git a/webpack.config.js b/webpack.config.js index 6bee257..25849ad 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -33,6 +33,9 @@ let plugins = [ new webpack.DefinePlugin({ REDIRECT_URL: `'${process.env.REDIRECT_URL}'` }), + new webpack.DefinePlugin({ + EMBED_URL: `'${process.env.EMBED_URL}'` + }), new webpack.DefinePlugin({ MOSAIC_DOMAIN_LIST: `'${process.env.MOSAIC_DOMAIN_LIST}'` }),