diff --git a/config.json b/config.json index 6f60eca..bd29f34 100644 --- a/config.json +++ b/config.json @@ -1,7 +1,7 @@ { "config": { "appname": "vxTwitter", - "color": "#43B581", + "color": "#1DA1F2", "database": "[url to mongo database goes here]", "link_cache": "ram", "method": "hybrid", diff --git a/serverless.yml b/serverless.yml index 74531db..c057675 100644 --- a/serverless.yml +++ b/serverless.yml @@ -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'} diff --git a/twitfix.py b/twitfix.py index 9a82535..e0866b3 100644 --- a/twitfix.py +++ b/twitfix.py @@ -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')