Naturally 404 for deleted statuses

This commit is contained in:
Mouse Reeve 2021-01-16 14:04:26 -08:00
parent d6dc975a2e
commit de9fbcef80

View file

@ -26,7 +26,8 @@ class Status(View):
''' display a particular status (and replies, etc) ''' ''' display a particular status (and replies, etc) '''
try: try:
user = get_user_from_username(username) 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: except ValueError:
return HttpResponseNotFound() return HttpResponseNotFound()