diff options
author | Miroslav Šedivý <[email protected]> | 2022-12-02 22:04:23 +0100 |
---|---|---|
committer | Miroslav Šedivý <[email protected]> | 2022-12-02 22:04:23 +0100 |
commit | 325cc917d5ad14b130b156d23b7adca46499dc24 (patch) | |
tree | 247b41199512db9693d00baf7522602805e31c3f /mastodon/relationships.py | |
parent | c796cf39b01e38fe381fb4743988da991b072183 (diff) | |
download | mastodon.py-325cc917d5ad14b130b156d23b7adca46499dc24.tar.gz |
refactor: use f-strings
Diffstat (limited to 'mastodon/relationships.py')
-rw-r--r-- | mastodon/relationships.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/mastodon/relationships.py b/mastodon/relationships.py index 9cf15db..043174c 100644 --- a/mastodon/relationships.py +++ b/mastodon/relationships.py | |||
@@ -102,8 +102,7 @@ class Mastodon(Internals): | |||
102 | Returns the updated :ref:`relationship dict <relationship dict>` for the requesting account. | 102 | Returns the updated :ref:`relationship dict <relationship dict>` for the requesting account. |
103 | """ | 103 | """ |
104 | id = self.__unpack_id(id) | 104 | id = self.__unpack_id(id) |
105 | url = '/api/v1/follow_requests/{0}/authorize'.format(str(id)) | 105 | return self.__api_request('POST', f'/api/v1/follow_requests/{id}/authorize') |
106 | return self.__api_request('POST', url) | ||
107 | 106 | ||
108 | @api_version("1.0.0", "3.0.0", _DICT_VERSION_RELATIONSHIP) | 107 | @api_version("1.0.0", "3.0.0", _DICT_VERSION_RELATIONSHIP) |
109 | def follow_request_reject(self, id): | 108 | def follow_request_reject(self, id): |
@@ -113,8 +112,7 @@ class Mastodon(Internals): | |||
113 | Returns the updated :ref:`relationship dict <relationship dict>` for the requesting account. | 112 | Returns the updated :ref:`relationship dict <relationship dict>` for the requesting account. |
114 | """ | 113 | """ |
115 | id = self.__unpack_id(id) | 114 | id = self.__unpack_id(id) |
116 | url = '/api/v1/follow_requests/{0}/reject'.format(str(id)) | 115 | return self.__api_request('POST', f'/api/v1/follow_requests/{id}/reject') |
117 | return self.__api_request('POST', url) | ||
118 | 116 | ||
119 | ### | 117 | ### |
120 | # Writing data: Domain blocks | 118 | # Writing data: Domain blocks |