[ActivityPub S2S] Pleroma drops Object that has multiple "type"
Environment
- Installation type (OTP or From Source): sourse sourse
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 745375bd
- Elixir version (
elixir -v
for from source installations, N/A for OTP): 1.11.2, Erlang/OTP 23 - Operating system: Ubuntu 20.04
- PostgreSQL version (
psql -V
): 12.6
Bug description
According to ActivityStreams spec (and example), Object may have multiple types defined, when it needs to override core vocabulary type.
Pleroma seems to be dropping this. It works on Mastodon 3.4.0+glitch though.
Example JSON:
{
"id": "https://aptest.debiania.in.ua/notes/2",
"type": ["Note", "gr:Location"],
"published": "2021-05-23T09:06:18.141413+00:00",
"attributedTo": "https://aptest.debiania.in.ua/actor",
"content": "Hello, multi-typed world!",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [],
"inReplyTo": "",
"summary": "",
"tag": [],
"sensitive": false,
"gr:category": "restaurants/french_restaurants",
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"gr": "http://purl.org/goodrelations/v1#"
}
]
}
Edited by a1batross