Twitter supports x:// to align with it's new re-branding (#971)

This commit is contained in:
Chris Caron 2023-10-08 08:56:00 -04:00 committed by GitHub
parent ae0c412b41
commit 902f39cd58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ class NotifyTwitter(NotifyBase):
service_url = 'https://twitter.com/' service_url = 'https://twitter.com/'
# The default secure protocol is twitter. # 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 # A URL that takes you to the setup/help of the specific protocol
setup_url = 'https://github.com/caronc/apprise/wiki/Notify_twitter' setup_url = 'https://github.com/caronc/apprise/wiki/Notify_twitter'

View File

@ -87,7 +87,7 @@ apprise_url_tests = (
'notify_response': False, 'notify_response': False,
# Our expected url(privacy=True) startswith() response: # 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' ('twitter://consumer_key/consumer_secret/atoken3/access_secret'
'?cache=no', { '?cache=no', {