From c5a53c79da1bef6f2faf402c0e91f16cd6f98124 Mon Sep 17 00:00:00 2001 From: Ryan Stafford Date: Fri, 28 Jul 2023 12:51:17 -0400 Subject: [PATCH] show lemmy back end version --- routes.go | 1 + templates/settings.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/routes.go b/routes.go index 02e38ed..da65011 100644 --- a/routes.go +++ b/routes.go @@ -687,6 +687,7 @@ func Settings(w http.ResponseWriter, r *http.Request, ps httprouter.Params) { Render(w, "index.html", state) return } + state.GetSite() switch r.Method { case "POST": for _, name := range []string{"DefaultSortType", "DefaultListingType", "DefaultCommentSortType"} { diff --git a/templates/settings.html b/templates/settings.html index 969f969..43091e5 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -125,7 +125,7 @@
- + {{ if .XHR }}{{ end }}