From 902f39cd5806ad089f6084e8d122b45ebbc6d733 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Sun, 8 Oct 2023 08:56:00 -0400 Subject: [PATCH] Twitter supports x:// to align with it's new re-branding (#971) --- apprise/plugins/NotifyTwitter.py | 2 +- test/test_plugin_twitter.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apprise/plugins/NotifyTwitter.py b/apprise/plugins/NotifyTwitter.py index 0adefddb..dfc31a32 100644 --- a/apprise/plugins/NotifyTwitter.py +++ b/apprise/plugins/NotifyTwitter.py @@ -83,7 +83,7 @@ class NotifyTwitter(NotifyBase): service_url = 'https://twitter.com/' # The default secure protocol is twitter. - secure_protocol = ('twitter', 'tweet') + secure_protocol = ('x', 'twitter', 'tweet') # A URL that takes you to the setup/help of the specific protocol setup_url = 'https://github.com/caronc/apprise/wiki/Notify_twitter' diff --git a/test/test_plugin_twitter.py b/test/test_plugin_twitter.py index 5449f0c4..b9318dc8 100644 --- a/test/test_plugin_twitter.py +++ b/test/test_plugin_twitter.py @@ -87,7 +87,7 @@ apprise_url_tests = ( 'notify_response': False, # Our expected url(privacy=True) startswith() response: - 'privacy_url': 'twitter://c...y/****/a...2/****', + 'privacy_url': 'x://c...y/****/a...2/****', }), ('twitter://consumer_key/consumer_secret/atoken3/access_secret' '?cache=no', {