1
0
Fork 0

Merge pull request #2947 from bookwyrm-social/small-ui-fixes

Small UI fixes
This commit is contained in:
Mouse Reeve 2023-08-19 15:09:12 -07:00 committed by GitHub
commit c6aaa80c62
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 44 additions and 18 deletions

View file

@ -19,7 +19,7 @@ class Directory(View):
software = request.GET.get("software")
if not software or software == "bookwyrm":
filters["bookwyrm_user"] = True
scope = request.GET.get("scope")
scope = request.GET.get("scope", "federated")
if scope == "local":
filters["local"] = True
@ -38,6 +38,8 @@ class Directory(View):
page.number, on_each_side=2, on_ends=1
),
"users": page,
"sort": sort,
"scope": scope,
}
return TemplateResponse(request, "directory/directory.html", data)