diff --git a/files/routes/comments.py b/files/routes/comments.py index f187f548a..c773b2080 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -9,6 +9,7 @@ from files.routes.front import comment_idlist from pusher_push_notifications import PushNotifications from flask import * from files.__main__ import app, limiter +from .posts import filter_title site = environ.get("DOMAIN").strip() @@ -263,7 +264,7 @@ def api_comment(v): parent_submission=parent_submission, parent_comment_id=c.id, level=level+1, - body=option + body=filter_title(option) ) g.db.add(c_option) diff --git a/files/routes/posts.py b/files/routes/posts.py index edd35bc37..0723b26ca 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -690,7 +690,7 @@ def submit_post(v): c = Comment(author_id=AUTOPOLLER_ACCOUNT, parent_submission=new_post.id, level=1, - body=option, + body=filter_title(option), ) g.db.add(c)