diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 356c39fd02..afc607253c 100644 --- a/files/helpers/alerts.py +++ b/files/helpers/alerts.py @@ -9,7 +9,7 @@ def create_comment(text_html, autojanny=False): new_comment = Comment(author_id=author_id, parent_submission=None, - body_html=text_html[:40000], + body_html=text_html, distinguish_level=6) g.db.add(new_comment) g.db.flush() diff --git a/files/routes/users.py b/files/routes/users.py index 5487167ed2..adc6e3e121 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -420,6 +420,7 @@ def transfer_coins(v, username): notif_text = f":marseycapitalistmanlet: @{v.username} has gifted you {amount-tax} coins!" if reason: + if len(reason) > 200: return {"error": "Reason is too long, max 200 characters"},400 notif_text += f"\n\n> {reason}" send_repeatable_notification(receiver.id, notif_text) diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 6cc89de65c..6fff2f6f2b 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -214,7 +214,7 @@