tk,
@tk@bbs.kawa-kun.com avatar

Does this look weird at all? is rejecting it from for some reason.

{
    "@context": "https://www.w3.org/ns/activitystreams",
    "id": "https://diatom.social/activity/77",
    "type": "Create",
    "directMessage": false,
    "to": [
        "https://www.w3.org/ns/activitystreams#Public"
    ],
    "cc": [
        "https://diatom.social/user/29/followers.json"
    ],
    "actor": "https://diatom.social/index.php/user/29",
    "object": {
        "@context": "https://www.w3.org/ns/activitystreams",
        "id": "https://diatom.social/object/note/77",
        "type": "Note",
        "published": "2023-06-20T02:18:41Z",
        "url": "https://diatom.social/notice/77",
        "attributedTo": "https://diatom.social/index.php/user/29",
        "to": [
            "https://www.w3.org/ns/activitystreams#Public"
        ],
        "cc": [
            "https://diatom.social/user/29/followers.json"
        ],
        "conversationId": "https://diatom.social/conversation/47",
        "conversationUrl": "https://diatom.social/conversation/47#notice-77",
        "content": "Another #<span class="tag"><a href="https://diatom.social/tag/test" rel="tag">test</a></span> .",
        "isLocal": true,
        "attachment": [],
        "tag": [
            {
                "@context": "https://www.w3.org/ns/activitystreams",
                "name": "test",
                "url": "https://diatom.social/tag/test"
            }
        ]
    }
}
tk,
@tk@bbs.kawa-kun.com avatar

Including some folks. @Moon @lain @feld

tk,
@tk@bbs.kawa-kun.com avatar

seems to prefer “naked” tags.

{
    "cc": [],
    "id": "https://bbs.kawa-kun.com/objects/87ad9e3e-5abf-4334-a136-680b9c63d57b",
    "to": [],
    "tag": [
        "test"
    ],
    "type": "Note",
    "actor": "https://bbs.kawa-kun.com/users/tk",
    "emoji": {},
    "source": {
        "content": "Hash tag <a class="hashtag" data-tag="test" href="https://bbs.kawa-kun.com/tag/test">#test</a> .",
        "mediaType": "text/markdown"
    },
    "content": "<p>Hash tag <a class="hashtag" data-tag="test" href="https://bbs.kawa-kun.com/tag/test">#test</a> .</p>",
    "context": "https://bbs.kawa-kun.com/contexts/895bd509-01b8-4507-b58e-cce599d31039",
    "summary": "",
    "generator": null,
    "published": "2023-06-20T02:25:46.156872Z",
    "sensitive": null,
    "attachment": []
}
lanodan,
@lanodan@queer.hacktivis.me avatar

@tk It should be using Mastodon-style Hashtags objects, it looks like it's one of those things where the ActivityStreams 2.0 specification screwed up as all objects should be type-qualified.

lanodan,
@lanodan@queer.hacktivis.me avatar

@tk Actually looking again, what apparently ~all except GnuSocial fediverse implementations are doing is forcibly adding "Hashtag" into the ActivityStreams namespace…

@evan @cwebber: Given how widespread this usage is and how it's unlikely to change, what do you think about updating ActivityStreams documentation to properly match usage? (Not that other things should be done this way)
Like https://www.w3.org/TR/activitystreams-vocabulary/#microsyntaxes gives an hashtag example without qualifying type and that seems pretty wrong to me (and might be where GnuSocial got it's idea).

tk,
@tk@bbs.kawa-kun.com avatar

@lanodan @cwebber @evan I patched the code to produce this, but still no dice. :blobfoxsad:

{
    "@context": "https://www.w3.org/ns/activitystreams",
    "id": "https://diatom.social/activity/78",
    "type": "Create",
    "directMessage": false,
    "to": [
        "https://www.w3.org/ns/activitystreams#Public"
    ],
    "cc": [
        "https://diatom.social/user/29/followers.json"
    ],
    "actor": "https://diatom.social/index.php/user/29",
    "object": {
        "@context": "https://www.w3.org/ns/activitystreams",
        "id": "https://diatom.social/object/note/78",
        "type": "Note",
        "published": "2023-06-20T13:45:19Z",
        "url": "https://diatom.social/notice/78",
        "attributedTo": "https://diatom.social/index.php/user/29",
        "to": [
            "https://www.w3.org/ns/activitystreams#Public"
        ],
        "cc": [
            "https://diatom.social/user/29/followers.json"
        ],
        "conversationId": "https://diatom.social/conversation/48",
        "conversationUrl": "https://diatom.social/conversation/48#notice-78",
        "content": "Another #<span class="tag"><a href="https://diatom.social/tag/tag" rel="tag">tag</a></span> #<span class="tag"><a href="https://diatom.social/tag/test" rel="tag">test</a></span> .",
        "isLocal": true,
        "attachment": [],
        "tag": [
            {
                "@context": "https://www.w3.org/ns/activitystreams",
                "name": "tag",
                "url": "https://diatom.social/tag/tag",
                "type": "Hashtag"
            },
            {
                "@context": "https://www.w3.org/ns/activitystreams",
                "name": "test",
                "url": "https://diatom.social/tag/test",
                "type": "Hashtag"
            }
        ]
    }
}
tk,
@tk@bbs.kawa-kun.com avatar

@lanodan @cwebber @evan Oh wait, it went through and I didn't notice it.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • fediverse
  • Durango
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • osvaldo12
  • everett
  • Youngstown
  • khanakhh
  • slotface
  • rosin
  • thenastyranch
  • ngwrru68w68
  • kavyap
  • normalnudes
  • megavids
  • ethstaker
  • GTA5RPClips
  • modclub
  • cisconetworking
  • mdbf
  • tacticalgear
  • cubers
  • provamag3
  • tester
  • anitta
  • Leos
  • JUstTest
  • lostlight
  • All magazines