mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 11:31:08 +00:00
Get user by any username for status page
This commit is contained in:
parent
7cf87be35c
commit
3e48adad52
1 changed files with 1 additions and 1 deletions
|
@ -185,7 +185,7 @@ def status_page(request, username, status_id):
|
|||
# we have a json request
|
||||
return incoming.get_status(request, username, status_id)
|
||||
try:
|
||||
user = models.User.objects.get(localname=username)
|
||||
user = get_user_from_username(username)
|
||||
status = models.Status.objects.select_subclasses().get(id=status_id)
|
||||
except ValueError:
|
||||
return HttpResponseNotFound()
|
||||
|
|
Loading…
Reference in a new issue