From 74166764622e7b9f8d57b0bdf0013283fc250bce Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 23 Jul 2024 10:04:07 -0400 Subject: [PATCH] fix icon and email content --- mastodon/models/email.py | 2 +- social/templates/feed_events.html | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mastodon/models/email.py b/mastodon/models/email.py index 3e4e029a..19bc753b 100644 --- a/mastodon/models/email.py +++ b/mastodon/models/email.py @@ -46,7 +46,7 @@ class Email: def generate_login_email(email: str, action: str) -> tuple[str, str]: if action != "verify": account = EmailAccount.objects.filter(handle__iexact=email).first() - action = "register" if account and account.user else "login" + action = "login" if account and account.user else "register" s = {"e": email, "a": action} # v = TimestampSigner().sign_object(s) code = b62_encode(random.randint(pow(62, 4), pow(62, 5) - 1)) diff --git a/social/templates/feed_events.html b/social/templates/feed_events.html index b59b4dcb..b446a7be 100644 --- a/social/templates/feed_events.html +++ b/social/templates/feed_events.html @@ -27,7 +27,8 @@