Allow indexing collections list page

This commit is contained in:
rubenwardy 2023-09-15 22:06:18 +01:00
parent bcebb72a66
commit 315337d552

@ -54,7 +54,7 @@ def list_all(author=None):
collections = [x for x in query.all() if x.check_perm(current_user, Permission.VIEW_COLLECTION)]
return render_template("collections/list.html",
user=user, collections=collections,
noindex=user is None or len(collections) == 0)
noindex=len(collections) == 0)
@bp.route("/collections/<author>/<name>/")