From c77edab79c1b53404a83f8e8bcc33de37ec55648 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 5 Dec 2021 18:09:51 +1100 Subject: [PATCH] minor functionality fixes --- bookwyrm/templates/ostatus/remote_follow.html | 4 ++-- bookwyrm/views/follow.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bookwyrm/templates/ostatus/remote_follow.html b/bookwyrm/templates/ostatus/remote_follow.html index 96c7f9452..ca47c529b 100644 --- a/bookwyrm/templates/ostatus/remote_follow.html +++ b/bookwyrm/templates/ostatus/remote_follow.html @@ -30,7 +30,7 @@
-

{% blocktrans with username=user.display_name %}Follow {{ username }} from another Fediverse account like Bookwyrm, Mastodon, or Pleroma.{% endblocktrans %}

+

{% blocktrans with username=user.display_name %}Follow {{ username }} from another Fediverse account like BookWyrm, Mastodon, or Pleroma.{% endblocktrans %}

@@ -38,7 +38,7 @@ {% csrf_token %} - +
diff --git a/bookwyrm/views/follow.py b/bookwyrm/views/follow.py index 7af8b0db7..7a9d7bad1 100644 --- a/bookwyrm/views/follow.py +++ b/bookwyrm/views/follow.py @@ -110,7 +110,7 @@ def ostatus_follow_request(request): error = "ostatus_subscribe" # don't do these checks for AnonymousUser before they sign in - if request.user.id: + if request.user.is_authenticated: # you have blocked them so you probably don't want to follow if hasattr(request.user, "blocks") and user in request.user.blocks.all():