fix(dashboard): noindex on public profile pages

This commit is contained in:
Iris System 2023-11-22 22:11:47 +13:00
parent 1aa410e4f4
commit 29382b252f

View file

@ -46,6 +46,7 @@ func main() {
r.NotFound(notFoundHandler)
r.Get("/profile/{type}/{id}", func(rw http.ResponseWriter, r *http.Request) {
rw.Header().Set("X-Robots-Tag", "noindex")
defer func() {
if a := recover(); a != nil {
notFoundHandler(rw, r)