Rewrite user home page in svelte

This commit is contained in:
2021-09-21 21:39:28 +02:00
parent 8ec548351e
commit 11132854b2
18 changed files with 817 additions and 52 deletions

View File

@@ -16,7 +16,7 @@ func (wc *WebController) serveAdClick(w http.ResponseWriter, r *http.Request, p
// The Real IP is used in the API server to determine that the view is not
// fake
var api = wc.api.RealIP(util.RemoteAddress(r))
var api = wc.api.RealIP(util.RemoteAddress(r)).RealAgent(r.UserAgent())
// Log a view on the file
if err := api.PostFileView(p.ByName("id"), wc.viewTokenOrBust()); err != nil {