Fix and update embed color
This commit is contained in:
parent
950091fc2b
commit
73edc9ebab
@ -1,7 +1,7 @@
|
||||
{
|
||||
"config": {
|
||||
"appname": "vxTwitter",
|
||||
"color": "#43B581",
|
||||
"color": "#1DA1F2",
|
||||
"database": "[url to mongo database goes here]",
|
||||
"link_cache": "ram",
|
||||
"method": "hybrid",
|
||||
|
@ -21,7 +21,7 @@ provider:
|
||||
VXTWITTER_LINK_CACHE: ${env:VXTWITTER_LINK_CACHE, 'json'}
|
||||
VXTWITTER_DATABASE: ${env:VXTWITTER_DATABASE, 'none'}
|
||||
VXTWITTER_METHOD: ${env:VXTWITTER_METHOD, 'hybrid'}
|
||||
VXTWITTER_COLOR: ${env:VXTWITTER_COLOR, '#43B581'}
|
||||
VXTWITTER_COLOR: ${env:VXTWITTER_COLOR, '#1DA1F2'}
|
||||
VXTWITTER_APP_NAME: ${env:VXTWITTER_APP_NAME, 'vxTwitter'}
|
||||
VXTWITTER_REPO: ${env:VXTWITTER_REPO, 'https://github.com/dylanpdx/BetterTwitFix'}
|
||||
VXTWITTER_URL: ${env:VXTWITTER_URL, 'https://vxtwitter.com'}
|
||||
|
@ -89,6 +89,7 @@ def renderImageTweetEmbed(tweetData,image,appnameSuffix=""):
|
||||
urlEncodedDesc=urllib.parse.quote(embedDesc),
|
||||
tweetLink=f'https://twitter.com/{tweetData["user_screen_name"]}/status/{tweetData["tweetID"]}',
|
||||
appname=msgs.formatProvider(config['config']['appname']+appnameSuffix,tweetData),
|
||||
color=config['config']['color']
|
||||
)
|
||||
|
||||
def renderVideoTweetEmbed(tweetData,mediaInfo,appnameSuffix=""):
|
||||
@ -104,6 +105,7 @@ def renderVideoTweetEmbed(tweetData,mediaInfo,appnameSuffix=""):
|
||||
urlEncodedDesc=urllib.parse.quote(embedDesc),
|
||||
tweetLink=f'https://twitter.com/{tweetData["user_screen_name"]}/status/{tweetData["tweetID"]}',
|
||||
appname=msgs.formatProvider(config['config']['appname']+appnameSuffix,tweetData),
|
||||
color=config['config']['color']
|
||||
)
|
||||
|
||||
def renderTextTweetEmbed(tweetData,appnameSuffix=""):
|
||||
@ -116,6 +118,7 @@ def renderTextTweetEmbed(tweetData,appnameSuffix=""):
|
||||
urlEncodedDesc=urllib.parse.quote(embedDesc),
|
||||
tweetLink=f'https://twitter.com/{tweetData["user_screen_name"]}/status/{tweetData["tweetID"]}',
|
||||
appname=msgs.formatProvider(config['config']['appname']+appnameSuffix,tweetData),
|
||||
color=config['config']['color']
|
||||
)
|
||||
|
||||
@app.route('/robots.txt')
|
||||
|
Loading…
x
Reference in New Issue
Block a user