Skip to content

Commit

Permalink
oops; this fix should have went with commit 3b57547 (refs #19)
Browse files Browse the repository at this point in the history
  • Loading branch information
caronc committed Jul 7, 2017
1 parent 0beabe0 commit f5a165d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Notify/pnotify/NotifyMatterMost.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from NotifyBase import NotifyImageSize
from NotifyBase import NotifyType
from NotifyBase import HTTP_ERROR_MAP
from NotifyBase import NOTIFY_APPLICATION_ID
import re

# Some Reference Locations:
Expand Down Expand Up @@ -107,10 +108,13 @@ def _notify(self, title, body, notify_type, **kwargs):
}

if self.user:
payload['payload']['username'] = self.user
payload['username'] = self.user

else:
payload['username'] = NOTIFY_APPLICATION_ID

if self.channel:
payload['payload']['channel'] = self.channel
payload['channel'] = self.channel

url = '%s://%s' % (self.schema, self.host)
if isinstance(self.port, int):
Expand Down

0 comments on commit f5a165d

Please sign in to comment.