For Fun: Let's collect ActivityPub Activities that amuse us

This actually gets even better:

  {
    "type": "PropertyValue",
    "name": "real titles version",
    "value": "<span class=\"h-card\" translate=\"no\">
<a href=\"https://mastodon.social/@wikihow_real\" class=\"u-url mention\">
@<span>wikihow_real</span></a></span>"
  },

This means that in order to get the value one actually needs to check if it contains a link and if yes, get the href value, not the text.

1 Like

Hi, just came here as the result of a search for “mobilizon dms to mastodon” … I’ve just tried this using https://activitypub.academy/ , sending it a message from my mobilizon install, and while I see the incoming Activity in the log, I can’t see/find the message to my academy profile at all - not on the Direct Messages page or the Profile page (of the target user) - where do you mean with “followers only posts in the profile” please?

See the screenshot in For Fun: Let's collect ActivityPub Activities that amuse us - #17 by helge

Also see my post above, how to reproduce my results.

Aha… so they only appear in… the profile of the sender, as seen on the recipients instance? That’s … less than helpful :frowning: The recipient sees nothing anywhere?

{
  "type": "PropertyValue",
  "name": "bsky",
  "value": "<a href=\"https://bsky.app/profile/example\" target=\"_blank\" rel=\"nofollow noopener noreferrer me\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"\">bsky.app/profile/example</span><span class=\"invisible\"></span></a>"
}

is even worse if one expands it with standard mastodon context.

[
  {
    "https://www.w3.org/ns/activitystreams#name": [
      {
        "@value": "bsky"
      }
    ],
    "@type": [
      "http://schema.org#PropertyValue"
    ],
    "http://schema.org#value": [
      {
        "@value": "<a href=\"https://bsky.app/profile/example\" target=\"_blank\" rel=\"nofollow noopener noreferrer me\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"\">bsky.app/profile/example</span><span class=\"invisible\"></span></a>"
      }
    ]
  }
]

And finally, how to use PropertyValue “correctly” (I’m unsure what that means):

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "PropertyValue": {
        "@id": "https://schema.org/PropertyValue",
        "@context": {
          "value": "https://schema.org/value",
          "name": "https://schema.org/name"
        }
      }
    }
  ],
  "attachment": [{ "type": "PropertyValue", "name": "key", "value": "value" }],
  "name": "test name"
}

“correctly” can be taken to mean “inoffensive to my sensibilities”. Basically, something defined by schema.org, uses the properties defined by schema.org. As json-ld defines no way to determine its usage is correct, this is of course up to debate.