我不确定这是 Discourse 中的一个错误。我已经在 Mastodon 上回复了这个问题。为了方便起见,在此处交叉发布:
在那种情况下,我们返回 400 的原因是 ActivityPub 规范 似乎要求它。
POST 请求(例如发送到收件箱)必须使用
application/ld+json; profile="https://www.w3.org/ns/activitystreams"的 Content-Type 进行,GET 请求(另请参阅 3.2 检索对象)则使用application/ld+json; profile="https://www.w3.org/ns/activitystreams"的 Accept 标头。@ClearlyClaire 是否需要在
Accept标头中添加text/html;q=0.1?