From de9fbcef804227a312b06d460bd5d7eddcf8e888 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 16 Jan 2021 14:04:26 -0800 Subject: [PATCH] Naturally 404 for deleted statuses --- bookwyrm/views/status.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bookwyrm/views/status.py b/bookwyrm/views/status.py index c1f3486fb..a55e33ff9 100644 --- a/bookwyrm/views/status.py +++ b/bookwyrm/views/status.py @@ -26,7 +26,8 @@ class Status(View): ''' display a particular status (and replies, etc) ''' try: user = get_user_from_username(username) - status = models.Status.objects.select_subclasses().get(id=status_id) + status = models.Status.objects.select_subclasses().get( + id=status_id, deleted=False) except ValueError: return HttpResponseNotFound()