Delete.
All checks were successful
devranta build / Build (push) Successful in 1m23s

This commit is contained in:
retoor 2025-01-06 19:00:45 +01:00
parent 669a76f8a9
commit 24b8db6f6d

View File

@ -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