summaryrefslogtreecommitdiffstats
path: root/users/shortcuts.py
diff options
context:
space:
mode:
Diffstat (limited to 'users/shortcuts.py')
-rw-r--r--users/shortcuts.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/users/shortcuts.py b/users/shortcuts.py
index 8377a7f..9aadb66 100644
--- a/users/shortcuts.py
+++ b/users/shortcuts.py
@@ -31,4 +31,6 @@ def by_handle_or_404(request, handle, local=True, fetch=False) -> Identity:
)
if identity is None:
raise Http404(f"No identity for handle {handle}")
+ if identity.blocked:
+ raise Http404("Blocked user")
return identity