为什么据说是ActivityPub联邦的Discourse讨论串无法通过外部AP客户端访问?

嗯,不,这似乎最终还是一个 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……

1 个赞