~yvolk


#122 [ActivityPub C2S] "conversation" URL points to 404 page 1 year, 2 months ago

Comment by ~yvolk on ~tsileo/microblog.pub

I meant "collection of activities" should be returned.

Actually I don't see "conversation" in ActivityPub spec. But there IS "context" there: https://www.w3.org/TR/activitystreams-vocabulary/#dfn-context And I think that the "context" URL should be used to point to the "conversation" page ?!

#122 [ActivityPub C2S] "conversation" URL points to 404 page 1 year, 2 months ago

Ticket created by ~yvolk on ~tsileo/microblog.pub

In the example response shown in https://todo.sr.ht/~tsileo/microblog.pub/121 the "conversation" (and the same for "context") URL is this: https://andstatus-testing.microblog.pub/contexts/8312ee2f4b474248b6fad147b80fdcf8 It points to 404 page. If accessed via ActivityPub, the request returns NOT_FOUND (404) also.

Expected: "conversation" URL should lead to the conversation:

  • Web page if accessed via Browser
  • and pages collection if accessed via ActivityPub

#48 Does microblog.pub support ActivityPub clients? 1 year, 2 months ago

Comment by ~yvolk on ~tsileo/microblog.pub

We got rid of "Mastodon API" in AndStatus: it was used during OAuth 2.0 registration and logging in only! Basic features starting to work... Now starting fixing actually ActivityPub C2S bugs. I've just created the issue here: https://todo.sr.ht/~tsileo/microblog.pub/121

#121 [ActivityPub C2S] No Activity in the Create Activity response 1 year, 2 months ago

Ticket created by ~yvolk on ~tsileo/microblog.pub

I'm testing ActivityPub C2S implementation using AndStatus app ( https://github.com/andstatus/andstatus#readme ).

Expected: According to https://www.w3.org/TR/activitypub/#create-activity-outbox response should be an Activity wrapping a note. Actual result: only a Note object is returned, no Activity.

This causes activities duplication at a client side, as the initial "Create" activity doesn't get an id from a server.

Example: the note https://andstatus-testing.microblog.pub/o/4e6e10825ea0439eb7ee99d773b7a0e4

was sent with this payload:

{
  "@context": "https:\/\/www.w3.org\/ns\/activitystreams",
  "type": "Create",
  "to": [
    "https:\/\/www.w3.org\/ns\/activitystreams#Public",
    "https:\/\/andstatus-testing.microblog.pub\/followers",
    "acct:AndStatus@mastodon.social"
  ],
  "actor": "https:\/\/andstatus-testing.microblog.pub",
  "object": {
    "attributedTo": "https:\/\/andstatus-testing.microblog.pub",
    "type": "Note",
    "to": [
      "https:\/\/www.w3.org\/ns\/activitystreams#Public",
      "https:\/\/andstatus-testing.microblog.pub\/followers",
      "acct:AndStatus@mastodon.social"
    ],
    "content": "A note mentioning #Mastodon account @AndStatus@mastodon.social"
  },
  "loggedURL": "https:\/\/andstatus-testing.microblog.pub\/outbox"
}

and the response was:

{
  "@context": [
    "https:\/\/www.w3.org\/ns\/activitystreams",
    "https:\/\/w3id.org\/security\/v1",
    {
      "Hashtag": "as:Hashtag",
      "sensitive": "as:sensitive",
      "manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
      "alsoKnownAs": {
        "@id": "as:alsoKnownAs",
        "@type": "@id"
      },
      "movedTo": {
        "@id": "as:movedTo",
        "@type": "@id"
      },
      "toot": "http:\/\/joinmastodon.org\/ns#",
      "featured": {
        "@id": "toot:featured",
        "@type": "@id"
      },
      "Emoji": "toot:Emoji",
      "blurhash": "toot:blurhash",
      "votersCount": "toot:votersCount",
      "schema": "http:\/\/schema.org#",
      "PropertyValue": "schema:PropertyValue",
      "value": "schema:value",
      "ostatus": "http:\/\/ostatus.org#",
      "conversation": "ostatus:conversation"
    }
  ],
  "type": "Note",
  "id": "https:\/\/andstatus-testing.microblog.pub\/o\/4e6e10825ea0439eb7ee99d773b7a0e4",
  "attributedTo": "https:\/\/andstatus-testing.microblog.pub",
  "content": "<p>A note mentioning <a href=\"https:\/\/andstatus-testing.microblog.pub\/t\/mastodon\" class=\"mention hashtag\" rel=\"tag\">#<span>Mastodon<\/span><\/a> account <span class=\"h-card\"><a href=\"https:\/\/mastodon.social\/@AndStatus\" class=\"u-url mention\">@AndStatus@mastodon.social<\/a><\/span><\/p>\n",
  "to": [
    "https:\/\/www.w3.org\/ns\/activitystreams#Public"
  ],
  "cc": [
    "https:\/\/andstatus-testing.microblog.pub\/followers",
    "https:\/\/mastodon.social\/users\/AndStatus"
  ],
  "published": "2023-01-29T19:13:43Z",
  "context": "https:\/\/andstatus-testing.microblog.pub\/contexts\/8312ee2f4b474248b6fad147b80fdcf8",
  "conversation": "https:\/\/andstatus-testing.microblog.pub\/contexts\/8312ee2f4b474248b6fad147b80fdcf8",
  "url": "https:\/\/andstatus-testing.microblog.pub\/o\/4e6e10825ea0439eb7ee99d773b7a0e4",
  "tag": [
    {
      "href": "https:\/\/andstatus-testing.microblog.pub\/t\/mastodon",
      "name": "#mastodon",
      "type": "Hashtag"
    },
    {
      "type": "Mention",
      "href": "https:\/\/mastodon.social\/users\/AndStatus",
      "name": "@AndStatus@mastodon.social"
    }
  ],
  "summary": null,
  "inReplyTo": null,
  "sensitive": false,
  "attachment": []
}