Hi… I am well aware that this diff view is very suboptimal. It will be fixed when the refactored server comes along!
errorPage404 should actually do 404
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-FileContributor: Runxi Yu <https://runxiyu.org>
package main
import (
	"net/http"
)
func errorPage404(w http.ResponseWriter, params map[string]any) {
w.WriteHeader(404)
_ = templates.ExecuteTemplate(w, "404", params) }