嗯,不,这似乎最终还是一个 Discourse 的 bug:Posts from Discourse do not resolve via the Search API · Issue #34632 · mastodon/mastodon · GitHub
进一步调查发现,Mastodon 使用以下
Accept标头请求资源:Accept: application/activity+json, application/ld+json; profile="https://www.w3.org/ns/activitystreams", text/html;q=0.1使用此标头查询 discourse 会导致 HTTP 400 响应。
忽略
text/html;q=0.1会返回一个 ActivityStreams 对象。因此,这似乎是 Discourse 的一个 bug,当text/html是可接受类型的一部分时,它似乎会返回 400……