diff --git a/files/routes/users.py b/files/routes/users.py index fb6a4fb3a..45a3a6617 100644 --- a/files/routes/users.py +++ b/files/routes/users.py @@ -205,7 +205,8 @@ def transfer_coins(v, username): if not v.patron and not receiver.patron: tax = math.ceil(amount*0.03) tax_receiver = g.db.query(User).filter_by(id=TAX_RECEIVER_ID).first() - tax_receiver.coins += tax/3 + if request.host == 'rdrama.net': tax_receiver.coins += tax/3 + else: tax_receiver.coins += tax log_message = f"[@{v.username}]({v.url}) has transferred {amount} {app.config['COINS_NAME']} to [@{receiver.username}]({receiver.url})" send_notification(TAX_RECEIVER_ID, log_message) g.db.add(tax_receiver) diff --git a/files/templates/userpage.html b/files/templates/userpage.html index 18ea9ea59..bcbf29a19 100644 --- a/files/templates/userpage.html +++ b/files/templates/userpage.html @@ -41,40 +41,44 @@ {% block desktopUserBanner %} - +{% endif %} - {% if u.song %} +{% if u.song %} + + +{% endif %}