fix: remove user-agent restriction from article OG rewrite

All /a/:naddr requests now route to article-og handler, which handles crawler detection internally. This ensures social media crawlers always receive proper OpenGraph meta tags.
This commit is contained in:
Gigi
2025-11-07 16:10:31 +01:00
parent 507aa27d29
commit d83708ceb3

View File

@@ -2,13 +2,6 @@
"rewrites": [
{
"source": "/a/:naddr",
"has": [
{
"type": "header",
"key": "user-agent",
"value": ".*(bot|crawl|spider|slurp|facebook|twitter|linkedin|whatsapp|telegram|slack|discord|preview).*"
}
],
"destination": "/api/article-og?naddr=:naddr"
},
{