This commit is contained in:
parent
669a76f8a9
commit
24b8db6f6d
@ -117,6 +117,17 @@ class Api:
|
||||
return None
|
||||
|
||||
return obj.get("comment")
|
||||
|
||||
async def delete_comment(self, id_):
|
||||
response = None
|
||||
if not await self.ensure_login():
|
||||
return False
|
||||
async with self as session:
|
||||
response = await session.delete(
|
||||
url=self.patch_url("comments/" + str(id_)), params=self.patch_auth()
|
||||
)
|
||||
obj = await response.json()
|
||||
return obj.get("success", False)
|
||||
|
||||
async def get_profile(self, id_):
|
||||
response = None
|
||||
|
Loading…
Reference in New Issue
Block a user