summaryrefslogtreecommitdiff
path: root/internal/web/profile.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2025-02-05 12:47:13 +0100
committerLibravatar GitHub <noreply@github.com>2025-02-05 12:47:13 +0100
commitbaed591a1d19942ec553baed41a8048ab9dd18ca (patch)
treeb8c91d4f193ab2a80e71f222fb1bda4bb775805b /internal/web/profile.go
parent[bugfix] wrong nodeinfo version (tobi is a boob) (#3735) (diff)
downloadgotosocial-baed591a1d19942ec553baed41a8048ab9dd18ca.tar.xz
[feature] Use `X-Robots-Tag` headers to instruct scrapers/crawlers (#3737)
* [feature] Use `X-Robots-Tag` headers to instruct scrapers/crawlers * use switch for RobotsHeaders
Diffstat (limited to 'internal/web/profile.go')
-rw-r--r--internal/web/profile.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/web/profile.go b/internal/web/profile.go
index a6d96a9ea..cf12ca33a 100644
--- a/internal/web/profile.go
+++ b/internal/web/profile.go
@@ -103,7 +103,7 @@ func (m *Module) profileGETHandler(c *gin.Context) {
// index if account is discoverable.
var robotsMeta string
if targetAccount.Discoverable {
- robotsMeta = robotsMetaAllowSome
+ robotsMeta = apiutil.RobotsDirectivesAllowSome
}
// We need to change our response slightly if the