@@ -156,9 +156,9 @@ def get_followers(
156156
157157 Get all the followers of a CodinGamer.
158158
159- You need to be logged in as the CodinGamer to get its followers
160- or else a :exc:`LoginRequired` will be raised. If you can't log in,
161- you can use :meth:`CodinGamer.get_followers_ids` instead.
159+ You need to be logged in to get the followers or else a
160+ :exc:`LoginRequired` will be raised. If you can't log in, you can use
161+ :meth:`CodinGamer.get_followers_ids` instead.
162162
163163 .. note::
164164 This property is a generator.
@@ -174,25 +174,24 @@ def get_followers(
174174 The follower.
175175 """
176176
177- if (
178- not self ._state .logged_in
179- or self .public_handle != self ._state .codingamer .public_handle
180- ):
177+ if not self ._state .logged_in :
181178 raise LoginRequired ()
182179
183180 if self ._state .is_async :
184181
185182 async def _get_followers ():
186183 followers = await self ._state .http .get_codingamer_followers (
187- self .id
184+ self .id , self . _state . codingamer . id
188185 )
189186 for follower in followers :
190187 yield CodinGamer (self ._state , follower )
191188
192189 else :
193190
194191 def _get_followers ():
195- followers = self ._state .http .get_codingamer_followers (self .id )
192+ followers = self ._state .http .get_codingamer_followers (
193+ self .id , self ._state .codingamer .id
194+ )
196195 for follower in followers :
197196 yield CodinGamer (self ._state , follower )
198197
@@ -222,9 +221,9 @@ def get_followed(
222221
223222 Get all the followed CodinGamers.
224223
225- You need to be logged in as the CodinGamer to get its followed
226- CodinGamers or else a :exc:`LoginRequired` will be raised. If you can't
227- log in, you can use :meth:`CodinGamer.get_followed_ids` instead.
224+ You need to be logged in to get the followed CodinGamers or else a
225+ :exc:`LoginRequired` will be raised. If you can't log in, you can use
226+ :meth:`CodinGamer.get_followed_ids` instead.
228227
229228 .. note::
230229 This property is a generator.
@@ -240,25 +239,24 @@ def get_followed(
240239 The followed CodinGamer.
241240 """
242241
243- if (
244- not self ._state .logged_in
245- or self .public_handle != self ._state .codingamer .public_handle
246- ):
242+ if not self ._state .logged_in :
247243 raise LoginRequired ()
248244
249245 if self ._state .is_async :
250246
251247 async def _get_followed ():
252248 followeds = await self ._state .http .get_codingamer_following (
253- self .id
249+ self .id , self . _state . codingamer . id
254250 )
255251 for followed in followeds :
256252 yield CodinGamer (self ._state , followed )
257253
258254 else :
259255
260256 def _get_followed ():
261- followeds = self ._state .http .get_codingamer_following (self .id )
257+ followeds = self ._state .http .get_codingamer_following (
258+ self .id , self ._state .codingamer .id
259+ )
262260 for followed in followeds :
263261 yield CodinGamer (self ._state , followed )
264262
0 commit comments