Zum Inhalt der Seite gehen


Any ActivityPub and Mastodon experts out there?

Why might a link to a profile like @blog send a user to the web site vs show it in the profile pane in Mastodon?

@blog

just small circles 🕊 hat dies geteilt.

Als Antwort auf Paul Kinlan

do you mean that @blog should go to a Mastodon profile page? *is* it a Mastodon profile? Just grabbing your post via API...
Als Antwort auf Andy Piper

No it's not a mastodon profile. I naively thought any profile on the ActivityPub "network" would appear... It does if I search for the profile url directly in mastodon.
Als Antwort auf Paul Kinlan

ok. The ActivityStreams object contains ` Mention {
href: URL "posthero.us/actor",
name: "@blog"
}` so the link goes to that URL, basically.
Als Antwort auf Andy Piper

does mastodon generate it that way from configuration discovered via webfinger?
Als Antwort auf Paul Kinlan

it will be displaying the "profile" page from search from WebFinger, yeah. But then rendering the ActivityStreams payloads (Notes) as posts on the platform.
Als Antwort auf Andy Piper

... full disclosure, I will rapidly run out of technical rope in this discussion, but I know there are other more qualified #ActivityPub *and* Mastodon internals folks who can answer more qs (plus my brain is tired).
Als Antwort auf Paul Kinlan

how do you link to the profile?

when I search for `https://posthero.us/actor` and click on the search result it opens properly, so I would assume that it is about the linking!?

Als Antwort auf Matthias Pfefferle

@andypiper maybe not! another idea: you link to posthero.us/ as Actor-URL and that URL does neither support Content-Negotiation, nor adds a link header to the ID posthero.us/actor.

So maybe that might be a problem!?

Als Antwort auf Paul Kinlan

the easiest thing you could try is adding `<link rel="alternate" type="application/activity+json" href="https ://posthero.us/actor" />` to the html head of posthero.us
Dieser Beitrag wurde bearbeitet. (1 Monat her)
Als Antwort auf Matthias Pfefferle

@pfefferle @andypiper I think I've added content negotiation and also the link rel alternate and it's not changed anything. I'll try and hop back on to it this weekend.... I don't actually like how I've got /actor and not a name etc.
Als Antwort auf Paul Kinlan

ok, seems to work now (content negotiation). sorry 🫣
Dieser Beitrag wurde bearbeitet. (1 Monat her)
Als Antwort auf Matthias Pfefferle

@pfefferle @andypiper - I fixed it. I had `url` in the actor JSON. Removing that now sends you to the profile (might need to unfollow and follow).

Wanted to say a big thanks for taking a look at this yesterday.

Als Antwort auf Matthias Pfefferle

@pfefferle @andypiper we should do a better job with discovering the AP objects behind embedded links to HTML. There's a project at the W3C SocialCG for this:

github.com/swicg/activitypub-h…

just small circles 🕊 hat dies geteilt.

Als Antwort auf Paul Kinlan

I should also just point you at browser.pub/ and mention that fedify (npm install fedify) has a great CLI for some of the testing too. Good luck!
Als Antwort auf Paul Kinlan

@andypiper Paul fun to hear you're playing around with Activity Pub! I'm volunteering with the Mastodon team. Happy to help if you have any other questions
Als Antwort auf Scott Jenson

@scottjenson @andypiper ooh exciting. Less of a question and more of a request paul.kinlan.me/thoughts-on-web…

Matthias Pfefferle hat dies geteilt.

Als Antwort auf Paul Kinlan

@scottjenson take a look at codeberg.org/fediverse/fep/src… is my immediate first thought. And now I'm going to sleep and I'll read your post some more tomorrow! 🙂