diff --git a/frontend/views.py b/frontend/views.py index 530e34d..ad0ab75 100644 --- a/frontend/views.py +++ b/frontend/views.py @@ -304,7 +304,7 @@ def post(self, request, challenge_id): contents = request.POST.get("contents") if len(contents) > 1024: messages.error(request, "提交内容超过字数限制。") - return self.return_template(challenge_name, too_frequent, latest_feedback, contents) + return self.return_template(challenge_name, too_frequent, latest_feedback, contents[:1024]) user = User.get(Context.from_request(request), request.user.pk) # send to user-defined endpoint if settings.FEEDBACK_ENDPOINT: