Skip to content

Commit 8c77e3c

Browse files
committed
Fix purge
1 parent e7924fc commit 8c77e3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lemmylib/lib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,10 @@ def purge_comment(self, comment_id: int, reason: str | None = None):
188188
return self.call_api(LemmyApiMethod.POST, f'admin/purge/comment',
189189
data={'reason': reason, 'comment_id': comment_id})
190190

191-
def get_post(self, post_id: int):
191+
def get_post(self, post_id: int, comment_id: int | None = None):
192192
self._logger.debug("LemmyLib get_post")
193193

194-
return self.call_api(LemmyApiMethod.GET, f'post', params={'id': post_id})
194+
return self.call_api(LemmyApiMethod.GET, f'post', params={'id': post_id, 'comment_id': comment_id})
195195

196196
def get_comment(self, comment_id: int):
197197
self._logger.debug("LemmyLib get_comment")

0 commit comments

Comments
 (0)