diff --git a/files/helpers/alerts.py b/files/helpers/alerts.py index 356c39fd0..afc607253 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 5487167ed..adc6e3e12 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 6cc89de65..6fff2f6f2 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -214,7 +214,7 @@
- +
{{u.username}} will receive 0 coins
@@ -524,7 +524,7 @@
- +
{{u.username}} will receive 0 coins