diff options
author | Lorenz Diener <[email protected]> | 2022-12-02 23:55:32 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-12-02 23:55:32 +0200 |
commit | f5d4fbc1f0bd61e80f9daced15d7ef7ee349b50f (patch) | |
tree | 247b41199512db9693d00baf7522602805e31c3f /mastodon/conversations.py | |
parent | c796cf39b01e38fe381fb4743988da991b072183 (diff) | |
parent | 325cc917d5ad14b130b156d23b7adca46499dc24 (diff) | |
download | mastodon.py-f5d4fbc1f0bd61e80f9daced15d7ef7ee349b50f.tar.gz |
Merge pull request #290 from eumiro/fstrings
refactor: use f-strings
Diffstat (limited to 'mastodon/conversations.py')
-rw-r--r-- | mastodon/conversations.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mastodon/conversations.py b/mastodon/conversations.py index ba3ee61..5482fb7 100644 --- a/mastodon/conversations.py +++ b/mastodon/conversations.py | |||
@@ -39,5 +39,4 @@ class Mastodon(Internals): | |||
39 | Returns the updated :ref:`conversation dict <conversation dict>`. | 39 | Returns the updated :ref:`conversation dict <conversation dict>`. |
40 | """ | 40 | """ |
41 | id = self.__unpack_id(id) | 41 | id = self.__unpack_id(id) |
42 | url = '/api/v1/conversations/{0}/read'.format(str(id)) | 42 | return self.__api_request('POST', f'/api/v1/conversations/{id}/read') |
43 | return self.__api_request('POST', url) | ||