From e9d681d0a452165f2304bd2604dfb207e881dd17 Mon Sep 17 00:00:00 2001 From: 50-scratch-tabs <197407676+50-scratch-tabs@users.noreply.github.com> Date: Sun, 2 Feb 2025 20:46:15 -0600 Subject: [PATCH] Enable reporting comments even if you are not the profile owner I made report_comment use _assert_auth instead of _assert_permission so that you can report comments if you're not the profile owner. Signed-off-by: 50-scratch-tabs <197407676+50-scratch-tabs@users.noreply.github.com> --- scratchattach/site/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scratchattach/site/user.py b/scratchattach/site/user.py index 0e247e2d..db8670b8 100644 --- a/scratchattach/site/user.py +++ b/scratchattach/site/user.py @@ -635,7 +635,7 @@ def report_comment(self, *, comment_id): Args: comment_id: The id of the comment that should be reported """ - self._assert_permission() + self._assert_auth() return requests.post( f"https://scratch.mit.edu/site-api/comments/user/{self.username}/rep/", headers = headers,