Replaced get with post.
This commit is contained in:
parent
d61a7c4fbd
commit
c55084e582
@ -161,12 +161,11 @@ class Api:
|
|||||||
if not await self.ensure_login():
|
if not await self.ensure_login():
|
||||||
return None
|
return None
|
||||||
async with self as session:
|
async with self as session:
|
||||||
response = await session.get(
|
response = await session.post(
|
||||||
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}),
|
||||||
)
|
)
|
||||||
obj = await response.json()
|
obj = await response.json()
|
||||||
print(obj)
|
|
||||||
return obj.get("success", False)
|
return obj.get("success", False)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user