Response fix.

This commit is contained in:
retoor 2024-12-03 19:15:48 +01:00
parent 42399f4566
commit 0e56e03409

View File

@ -165,7 +165,8 @@ class Api:
url=self.patch_url(f"comments/{comment_id}"), url=self.patch_url(f"comments/{comment_id}"),
data=self.patch_auth({"comment": comment}), data=self.patch_auth({"comment": comment}),
) )
return await response.get("success", False) obj = await response.json()
return obj.get("success", False)
@property @property
async def notifs(self): async def notifs(self):