Replaced get with post.

This commit is contained in:
retoor 2024-12-03 19:50:30 +01:00
parent d61a7c4fbd
commit c55084e582

View File

@ -161,12 +161,11 @@ class Api:
if not await self.ensure_login():
return None
async with self as session:
response = await session.get(
response = await session.post(
url=self.patch_url(f"comments/{comment_id}"),
data=self.patch_auth({"comment": comment}),
)
obj = await response.json()
print(obj)
return obj.get("success", False)
@property