From 1f9015a9c287f7557fb3f2bf1db8c4e3eea884ab Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Fri, 24 Apr 2026 10:39:14 +0530 Subject: [PATCH] fix: Re-add rate limit on blog comments (#38862) --- frappe/templates/includes/comments/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/templates/includes/comments/comments.py b/frappe/templates/includes/comments/comments.py index cf0cf331f9..826057201d 100644 --- a/frappe/templates/includes/comments/comments.py +++ b/frappe/templates/includes/comments/comments.py @@ -24,7 +24,7 @@ def get_limit(): @frappe.whitelist(allow_guest=True) -# @rate_limit(key="reference_name", limit=get_limit, seconds=60 * 60) +@rate_limit(limit=get_limit, seconds=60 * 60) def add_comment( comment: str, comment_email: str, comment_by: str, reference_doctype: str, reference_name: str, route: str ):