mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Fix Twitter notification with self-hosted images (Fixes Tautulli/Tautulli-Issues#54)
This commit is contained in:
parent
008e04d5cf
commit
cf73639281
2 changed files with 5 additions and 1 deletions
|
@ -3434,6 +3434,10 @@ class TWITTER(Notifier):
|
|||
parameters = kwargs['parameters']
|
||||
poster_url = parameters.get('poster_url','')
|
||||
|
||||
# Hack to add media type to attachment
|
||||
if poster_url:
|
||||
poster_url += '.png'
|
||||
|
||||
if self.config['incl_subject']:
|
||||
return self._send_tweet(subject + '\r\n' + body, attachment=poster_url)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue