Skip to content

summary is sent as a language map instead of a plain string #1

@pfefferle

Description

@pfefferle

tags.pub sends summary as a JSON object (language map) instead of a plain string:

{
  "summary": {
    "en": "blog shared \"Bloggen ist tot\""
  }
}

According to the Activity Streams 2.0 spec and the Language Mapping primer, language-tagged values should use the summaryMap property, while summary should remain a plain string:

{
  "summary": "blog shared \"Bloggen ist tot\"",
  "summaryMap": {
    "en": "blog shared \"Bloggen ist tot\""
  }
}

This causes issues in implementations that expect summary to be a string (e.g. WordPress ActivityPub plugin crashes with a TypeError when trying to process the value).

The same likely applies to content/contentMap and name/nameMap if those are also sent as language maps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions