Fix notification dismiss API call

The old call to /api/v1/notifications/dismiss with the id in a form
parameter is no longer supported. Posting to
/api/v1/notifications/:id/dismiss is the new way to do it.
This commit is contained in:
Alex Schroeder 2019-08-09 18:47:46 +02:00
pare ec58bd4de8
commit 057c925e5b

Veure arxiu

@ -1801,8 +1801,8 @@ class Mastodon:
Deletes a single notification
"""
id = self.__unpack_id(id)
params = self.__generate_params(locals())
self.__api_request('POST', '/api/v1/notifications/dismiss', params)
url = '/api/v1/notifications/{0}/dismiss'.format(str(id))
return self.__api_request('POST', url)
###