Skip to content

Commit

Permalink
Merge pull request #12 from qa-team-tools/fix-base-url
Browse files Browse the repository at this point in the history
fix init base url for mattermost
  • Loading branch information
Mefes authored Jul 23, 2024
2 parents bc6cb2f + d99cf25 commit de97e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions slack_notifications/mattermost/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def remove_reaction(self, name, raise_exc=False):

class Mattermost(NotificationClient):

def __init__(self, base_url, *, token, team_id=None):
super(Mattermost, self).__init__(base_url, token=token)
def __init__(self, base_url, *, token, team_id=None, api_endpoint='api/v4'):
super(Mattermost, self).__init__('{}/{}'.format(base_url, api_endpoint), token=token)
self._team_id = team_id

def _is_channel_id(self, channel):
Expand Down

0 comments on commit de97e83

Please sign in to comment.