forked from rDrama/rDrama
fix 500 error
parent
6d1bf1917f
commit
7c8ddc5687
|
@ -8,6 +8,9 @@ from files.helpers.alerts import push_notif
|
||||||
from files.classes.notifications import Notification
|
from files.classes.notifications import Notification
|
||||||
|
|
||||||
def notify(text, created_utc):
|
def notify(text, created_utc):
|
||||||
|
if len(text) > 1000:
|
||||||
|
text = text[:1000] + "..."
|
||||||
|
|
||||||
text = sanitize(text, blackjack="offsite mention", golden=False)
|
text = sanitize(text, blackjack="offsite mention", golden=False)
|
||||||
|
|
||||||
existing_comment = g.db.query(Comment.id).filter_by(
|
existing_comment = g.db.query(Comment.id).filter_by(
|
||||||
|
|
Loading…
Reference in New Issue