Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

=> AP: contentMap values should be HTML #1609

Open
Tamschi opened this issue Dec 6, 2024 · 0 comments
Open

=> AP: contentMap values should be HTML #1609

Tamschi opened this issue Dec 6, 2024 · 0 comments
Labels
bug User-facing breakage and reliability issues within Bridgy Fed.

Comments

@Tamschi
Copy link
Collaborator

Tamschi commented Dec 6, 2024

Current example with plaintext in #1607. It should have the same semantics as content: #1607 (comment)

The properties are in fact mapped to the same key in https://www.w3.org/ns/activitystreams, just with different transforms:

"content": "as:content",
"contentMap": {
    "@id":"as:content",
    "@container":"@language"
},

(This is valid, they just become an array after expansion like this:

"https://www.w3.org/ns/activitystreams#content": [
  {
    "@value": "<p>OMG OMG OMG we're able to bridge our threads accounts into Blue sky via federation <a class=\"mention\" href=\"https://ap.brid.gy/ap.brid.gy\">@ap.brid.gy</a>  & <a class=\"mention\" href=\"https://bsky.app/profile/snarfed.org\">@snarfed.org</a><br><br>RE: <a href=\"https://bsky.app/profile/did:plc:4ghwklnin2mvmam4ditdwv2o/post/3lclod7ptodd2\">https://bsky.app/profile/did:plc:4ghwklnin2mvmam4ditdwv2o/post/3lclod7ptodd2</a></p>"
  },
  {
    "@value": "OMG OMG OMG we're able to bridge our threads accounts into Blue sky via federation @ap.brid.gy  & @snarfed.org",
    "@language": "en"
  }
],

(via https://json-ld.org/playground/)

@Tamschi Tamschi added the bug User-facing breakage and reliability issues within Bridgy Fed. label Dec 6, 2024
@snarfed snarfed added now and removed now labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug User-facing breakage and reliability issues within Bridgy Fed.
Projects
None yet
Development

No branches or pull requests

2 participants