fix 500 error

master
Aevann 2024-05-21 02:16:44 +03:00
parent 6d1bf1917f
commit 7c8ddc5687
1 changed files with 3 additions and 0 deletions

View File

@ -8,6 +8,9 @@ from files.helpers.alerts import push_notif
from files.classes.notifications import Notification
def notify(text, created_utc):
if len(text) > 1000:
text = text[:1000] + "..."
text = sanitize(text, blackjack="offsite mention", golden=False)
existing_comment = g.db.query(Comment.id).filter_by(