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()