Allow "Note" to have "Link" tags
Environment
- Installation type (OTP or From Source): From Source
- Pleroma version (could be found in the "Version" tab of settings in Pleroma-FE): 2.4.3
- Elixir version (
elixir -v
for from source installations, N/A for OTP): 1.10.3 - Operating system: Debian
- PostgreSQL version (
psql -V
): 13.8
Bug description
(This problem was previously reported in the discussion on quotes: #2783 (comment 95257))
Pleroma fails to process Note
with Link
tag, and incoming activity is silently dropped. Here's an example of a link tag:
{
"type": "Note",
"tag": [
{
"name": "RE: https://example.org/objects/1",
"type": "Link",
"href": "https://example.org/objects/1",
"mediaType": "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""
}
],
...
}
This type of tag is permitted by AP/AS specs, so I think Pleroma should accept the activity (and ignore the tag if it doesn't know what to do with it).
The fix was recently proposed to Rebased (Pleroma fork): https://gitlab.com/soapbox-pub/rebased/-/merge_requests/185/diffs?commit_id=0cd15c997c70ee2303c3c04e938b8c3de39a436c. Perhaps the same fix can be applied to Pleroma?