mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-07 11:30:53 +01:00
Added BRANDING_NAME_DISCORD
This commit is contained in:
parent
70a6663ae5
commit
cb904dc881
5 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
BRANDING_NAME = "pxTwitter"
|
||||
BRANDING_NAME_DISCORD = "pxTwitter // Twittpr - Embed videos, polls & more!"
|
||||
DIRECT_MEDIA_DOMAINS = "d.pxtwitter.com,d.twittpr.com,dl.pxtwitter.com,dl.twittpr.com"
|
||||
HOST_URL = "https://pxtwitter.com"
|
||||
REDIRECT_URL = "https://github.com/dangeredwolf/pxTwitter"
|
|
@ -2,6 +2,7 @@ const fakeChromeVersion = '103';
|
|||
|
||||
export const Constants = {
|
||||
BRANDING_NAME: BRANDING_NAME,
|
||||
BRANDING_NAME_DISCORD: BRANDING_NAME_DISCORD,
|
||||
DIRECT_MEDIA_DOMAINS: DIRECT_MEDIA_DOMAINS.split(','),
|
||||
HOST_URL: HOST_URL,
|
||||
REDIRECT_URL: REDIRECT_URL,
|
||||
|
|
1
src/env.d.ts
vendored
1
src/env.d.ts
vendored
|
@ -1,4 +1,5 @@
|
|||
declare const BRANDING_NAME: string;
|
||||
declare const BRANDING_NAME_DISCORD: string;
|
||||
declare const DIRECT_MEDIA_DOMAINS: string;
|
||||
declare const HOST_URL: string;
|
||||
declare const REDIRECT_URL: string;
|
||||
|
|
|
@ -108,7 +108,7 @@ router.get('/owoembed', async (request: any) => {
|
|||
author_url: `${Constants.TWITTER_ROOT}/${encodeURIComponent(
|
||||
author
|
||||
)}/status/${encodeURIComponent(status)}`,
|
||||
provider_name: Constants.BRANDING_NAME,
|
||||
provider_name: Constants.BRANDING_NAME_DISCORD,
|
||||
provider_url: Constants.REDIRECT_URL,
|
||||
title: Strings.DEFAULT_AUTHOR_TEXT,
|
||||
type: 'link',
|
||||
|
|
|
@ -20,6 +20,9 @@ module.exports = {
|
|||
new webpack.DefinePlugin({
|
||||
BRANDING_NAME: `'${process.env.BRANDING_NAME}'`
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
BRANDING_NAME_DISCORD: `'${process.env.BRANDING_NAME_DISCORD}'`
|
||||
}),
|
||||
new webpack.DefinePlugin({
|
||||
DIRECT_MEDIA_DOMAINS: `'${process.env.DIRECT_MEDIA_DOMAINS}'`
|
||||
}),
|
||||
|
|
Loading…
Add table
Reference in a new issue