[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
This commit is contained in:
tobi
2025-02-05 12:47:13 +01:00
committed by GitHub
parent bfb81f5bac
commit baed591a1d
15 changed files with 311 additions and 142 deletions

View File

@@ -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