diff options
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 |