mirror of
1
Fork 0
gotosocial/internal/api/util
alemi.dev d0de3ad492
[bug] respect `X-Robots-Tag` and `robots.txt` on api/v1/instance and nodeinfo (#3756)
* feat: check X-Robots-Tag

when accessing /api/v1/instance or /nodeinfo endpoints respect
X-Robots-Tag

* chore: go fmt ./...

* Check robots.txt as well, add tests

---------

Co-authored-by: tobi <tobi.smethurst@protonmail.com>
2025-02-11 13:16:14 +01:00
..
errorhandling.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
mime.go [bug] respect `X-Robots-Tag` and `robots.txt` on api/v1/instance and nodeinfo (#3756) 2025-02-11 13:16:14 +01:00
mime_test.go [bugfix] add stricter checks during all stages of dereferencing remote AS objects (#2639) 2024-02-14 12:13:38 +01:00
negotiate.go [feature] Allow users to export data via the settings panel (#3140) 2024-07-31 15:03:34 +01:00
negotiate_test.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
opengraph.go [feature/frontend] Respect `prefers-reduced-motion` for avatars, headers, and emojis (#3118) 2024-07-21 14:22:08 +02:00
opengraph_test.go [feature/frontend] Respect `prefers-reduced-motion` for avatars, headers, and emojis (#3118) 2024-07-21 14:22:08 +02:00
parseform.go [feature] add support for clients editing statuses and fetching status revision history (#3628) 2024-12-23 17:54:44 +00:00
parsequery.go [bugfix] Log + ignore unknown notification types (#3577) 2024-11-27 17:22:45 +00:00
response.go [feature] Allow users to export data via the settings panel (#3140) 2024-07-31 15:03:34 +01:00
robots.go [feature] Use `X-Robots-Tag` headers to instruct scrapers/crawlers (#3737) 2025-02-05 12:47:13 +01:00
template.go [chore] skip `trusted-proxies` warning if ip excepted from rate limiting (#3699) 2025-01-27 19:21:13 +01:00