Also replace the mobile twitter domain

main
Bob Mottram 2022-02-28 13:36:32 +00:00
parent aaf7f299fa
commit 79151137a7
1 changed files with 4 additions and 2 deletions

View File

@ -86,8 +86,10 @@ def replace_twitter(post_json_object: {}, replacement_domain: str,
"""Replace Twitter with a replacement domain
This allows you to view twitter posts without having a twitter account
"""
_replace_silo_domain(post_json_object, 'twitter.com',
replacement_domain, system_language)
twitter_domains = ('mobile.twitter.com', 'twitter.com')
for tw_domain in twitter_domains:
_replace_silo_domain(post_json_object, tw_domain,
replacement_domain, system_language)
def _remove_meta_data(image_filename: str, output_filename: str) -> None: