mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
fix(dashboard): noindex on public profile pages
This commit is contained in:
parent
1aa410e4f4
commit
29382b252f
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue