From 8699c794d30467b71ee276d7ba19509476b03e24 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 13 Oct 2021 17:13:37 +0200 Subject: [PATCH] gdg --- files/routes/comments.py | 3 ++- files/routes/posts.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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)