From 46598243d4f03153091f21eef13f45371eca34d8 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 7 Apr 2024 11:28:43 +0200 Subject: [PATCH] fix this https://watchpeopledie.tv/notification/3100166#context --- files/routes/users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/routes/users.py b/files/routes/users.py index db392003f..a39a05109 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -155,8 +155,8 @@ def transfer_currency(v, username, currency_name, apply_tax): if reason: if len(reason) > TRANSFER_MESSAGE_LENGTH_LIMIT: abort(400, f"Reason is too long (max {TRANSFER_MESSAGE_LENGTH_LIMIT} characters)") - notif_text += f"\n\n> {reason}" - log_message += f"\n\n> {reason}" + notif_text += '\n\n> ' + '\n\n> '.join(reason.splitlines()) + log_message += '\n\n> ' + '\n\n> '.join(reason.splitlines()) charge_reason = f'Gift to @{username}' if not v.charge_account(currency_name, amount, charge_reason):