#dev 2023-02-25
2023-02-25 UTC
gRegor and jbrr[m] joined the channel
# gRegor [tantek], summarized the info I tracked down and from chat: https://github.com/snarfed/bridgy-fed/issues/45#issuecomment-1444950494
# Loqi [preview] [gRegorLove] Summarizing some sleuthing and discussion from #indieweb-dev:
Fetching the AS2 with `curl -H` for a [Mastodon post](https://hachyderm.io/users/liztai/statuses/109907766432901624):
```json
{
"@context": [
"https://www.w3.org/ns/activity...
# [tantek] lol this is a bit thin but I don't think reflects current practice right now: https://indieweb.org/hashtags#Markup
# [tantek] e.g. class="p-category p-bridgy-hashtag" ? or jump straight to experimenting with class="p-category p-hashtag" ? I ask because if Gargron though it was necessary to introduce an explicit "type": "Hashtag", inside something that is already a "tag", then perhaps there needs to be an explicit distinction for publishing/consuming code to properly make sense of this
# [tantek] gRegor, I'm basically wondering why Eugen thought he had to introduce that explicit type, since AS2 spec already says (though non-normatively) how to publish (and thus by implication how to detect/consume) hashtags: https://www.w3.org/TR/activitystreams-vocabulary/#microsyntaxes
# gRegor Yeah, interesting from that non-normative section: "While such microsyntaxes may be used within the values of the content, name, and summary properties on an Activity Streams Object, implementations should not be required to parse the values of those properties in order to determine the appropriate routing of notifications, categorization or linking between objects."
AramZS, geoffo, [chrisaldrich], mro and jeremycherfas joined the channel
# [KevinMarks] My historic choice was to turn categories into tags - eg for the hierarchical ones in RSS I decomposed the hierarchy into tags for Technorati. I see the # as an authoring affordance, not part of the category. See http://epeus.blogspot.com/2005/10/tags-and-cognitive-load.html
mro joined the channel
# prologic Are there any recommendations for caching webfinger lookups?
# [snarfed] Spec just says HTTP caching headers are fine: https://www.rfc-editor.org/rfc/rfc7033#section-4.2
# prologic kk
mro joined the channel
# prologic How do mentions typically work in activity pub systems?
# prologic do servers/clients expect them to be in plain text in the form @user@domain ?
# prologic Can the @user@domain text appear in a HTML <a> tag?
# [snarfed] there's an explicit Mention activity https://www.w3.org/TR/activitystreams-vocabulary/#dfn-mention
# [snarfed] see scrollback in this channel. from https://www.w3.org/TR/activitystreams-vocabulary/#dfn-mention : "microsyntaxes MAY be used within the values of the content, name, and summary properties...implementations SHOULD NOT be required to parse the values of those properties in order to determine the appropriate routing of notifications, categorization or linking between objects."
# [snarfed] er sorry, second link should be https://www.w3.org/TR/activitystreams-vocabulary/#microsyntaxes
# prologic wait hold up
# prologic I have to send an activity of type Mention?
# prologic Just to mention someone that's an AP actor?
mro_ joined the channel
# prologic oh gawd that's awful :)
# prologic there's no way to do this just in the Create+Note activity?
# prologic I'm reading: https://docs.joinmastodon.org/spec/activitypub/
mro joined the channel
# prologic same instance?
# prologic nah I'm not talking about the same instance here :)
# prologic just the rest of the so-called "fediverse"
# prologic Yup I am of course
# prologic just not sure how to reference them as a mention
# prologic Is the way Mastodon does it by shoving a Mention tag in the tags field stnadard?
# prologic me neither
# prologic I'm too tired to figure this out :)
# prologic kk
# prologic looks pretty simple actually
# prologic thank goodness for that
# prologic sending yet another activity would be insane :D
# prologic I've already had to teach yarnd how to handle Accept, Reject, Create, Delete, Undo and various sub-types
# prologic :D
# prologic haha
# prologic of course I'm still going to have to have an object called Mention :)
# prologic it hasn't been too bad really
# prologic just some hiccups along the way, finally getting the hang of it
# prologic well in twtxt/yarn we just parse the content
# prologic if it has a mention that is us, we highlight it or do something
# prologic easy
# prologic twtxt itself, was too simple
# prologic so yes we extended it a bit
# prologic yup
# prologic most of the "logic" is embedded in the content and we expect clients to know how to parse it
# prologic and its mostly just textual
# prologic whereas AP is a bunch of JSON objects and flows back 'n forth
# prologic mostly pushed
# prologic I might have to cache actor objects I'm thinking
# prologic I tend to look up activities inbound to verify the actor
# prologic yeah
IWSlackGateway joined the channel
# prologic fair enough
# prologic well it works đĨŗ
# prologic I literally just cheated and just translated all Twt().Mentions() to Activity Pub Note.Tag
# prologic And done
# prologic I don't even care if the mentions are valid AP actors or not đ¤Ŗ
# prologic Not my problem đ
# prologic At least GTS does the right thing with the Note.Tag list and shoves them in your mentions box if the HRef matches I guess
# prologic So đ
gerben and mro joined the channel
# @leeerob âŠī¸ Up at the top, under top paths, you can see the usage came from http://webmention.app.
As you mentioned, you moved that site, so it seems like this usage happened at the beginning of the usage cycle, and you just now hit 100%. Looking... (twitter.com/_/status/1629512670977163267)
chenghiz_ joined the channel
# @rem âŠī¸ Right, you see how it's unclear. webmention was moved, so was the days-to-christmas, it's unclear how I "take immediate action to avoid your account being blocked" (twitter.com/_/status/1629513180782247942)
mro, jeremycherfas and [aciccarello] joined the channel
# [aciccarello] Oh good, sounds like Vercel finally might unblock webmention.app
# [aciccarello] I wish it didn't require publicly shaming on Twitter
# [aciccarello] It's been down almost a month
gerben, geoffo and [snarfed] joined the channel
gRegor joined the channel
[KevinMarks] joined the channel
# prologic correct me if I'm wrong, but in most caes most AP servers and clients expect the Note.Content to be HTML right?
# [snarfed] Yes. AS2 specifies that, https://www.w3.org/TR/activitystreams-vocabulary/#dfn-content
# prologic Thanks!
geoffo and AramZS joined the channel