make "s" (Settings) a global template function so we don't have to pass it around everywhere.

This commit is contained in:
fiatjaf
2023-10-07 08:20:10 -03:00
parent f169c01e67
commit 637cfa55e9
11 changed files with 18 additions and 23 deletions

View File

@@ -74,7 +74,6 @@ func renderRelayPage(w http.ResponseWriter, r *http.Request) {
"proxy": "https://" + hostname + "/njump/proxy?src=",
"lastNotes": renderableLastNotes,
"modifiedAt": lastEventAt.Format("2006-01-02T15:04:05Z07:00"),
"s": s,
}
if len(renderableLastNotes) != 0 {