From efc1845aa09a0e0d331531b86d2154a3b8c2307e Mon Sep 17 00:00:00 2001 From: Alek Ratzloff Date: Sat, 7 May 2022 13:36:52 -0700 Subject: [PATCH] Update TODO comment Signed-off-by: Alek Ratzloff --- board/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/board/models.py b/board/models.py index bf85060..db589f9 100644 --- a/board/models.py +++ b/board/models.py @@ -154,8 +154,8 @@ class Post(models.Model): params={"max": settings.MAX_UPLOAD_SIZE}, ) # Rate limiting for posts - # BUG: if a user's last post is deleted, and it is their only post, they - # will not hit rate limit. This could probably be abused + # TODO BUG: if a user's last post is deleted, and it is their only post, + # they will not hit rate limit. This could probably be abused last_post = self.board.post_set.filter(ip=self.ip).order_by("-created").first() if last_post: now = timezone.now()