minor functionality fixes

This commit is contained in:
Hugh Rundle
2021-12-05 18:09:51 +11:00
parent 4b55ffe99e
commit c77edab79c
2 changed files with 3 additions and 3 deletions

View File

@ -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():