hazelnoot,

Is this a valid ActivityPub object?

{
  "@context": "https://www.w3.org/ns/activitystreams",
  "type": [
      "Object",
      "Link"
  ],
  "href": "https://example.com",
  "audience": "https://example.com"
}

Multiple types are allowed by the spec, but I can't find any documentation specifying whether those types can include Object and Link together.

@activitypub

0x1C3B00DA,
@0x1C3B00DA@kbin.social avatar

Just a heads up. Valid ActivityPub and acceptable ActivityPub aren't necessarily the same thing. Every project handles validations of messages differently

hazelnoot,

@0x1C3B00DA Oh I'm very aware lol. I'm not planning to do this, just deciding whether I need to support it or not.

sl007,
@sl007@digitalcourage.social avatar

@0x1C3B00DA @activitypub @hazelnoot

well, there is a Conformance Section which is Section 1.
It is the most important section. So while ever project might handle it differently it can either be conformant or non-conformant.

  1. It is super-important that "type" can be multiple (e.g. BBC will probably have 15 or so to describe an item) -
    all things are “multiple” except those marked “functional” in the spec.

  2. That said it unfortunately can't be a Link and Object at the same time.

The spec. says
“Note that the Link and Object types are disjoint from one another. That is, any given Object cannot also be a Link.”
https://www.w3.org/TR/activitystreams-core/#link
(last sentence)

The question is always in which of the 4 specs. is it cause they depend on each other
https://www.w3.org/TR/json-ld/
https://www.w3.org/TR/activitystreams-core
https://www.w3.org/TR/activitystreams-vocabulary
https://www.w3.org/TR/activitypub/

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • Ask_kbincafe
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines