Skip to content

Commit

Permalink
Fix api-call in update_post (#105)
Browse files Browse the repository at this point in the history
According to Mattermost-API-v4 documentation https://api.mattermost.com/#tag/posts%2Fpaths%2F~1posts~1%7Bpost_id%7D~1patch%2Fput the update_post shall be called with sub-path `/patch`.
  • Loading branch information
3mb3dw0rk5 authored and attzonko committed Apr 2, 2019
1 parent 29e909b commit 96d0d23
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mmpy_bot/mattermost.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,8 @@ def put(self, request, data):
def update_post(self, message_id, user_id, channel_id,
message, files=None, pid=""):
return self.put(
'/posts/%s' % message_id,
'/posts/%s/patch' % message_id,
{
'id': message_id,
'message': message,
})

Expand Down

0 comments on commit 96d0d23

Please sign in to comment.