Follow

The only downside of a fully static site as a blog is not being able to make it a first-class citizen on fedi.

I kinda feel there has to be a way, without running a full-blown fedi instance just for that though. But I don't have the time to see if I can figure out how to abuse ActivityPub this way. 🤔

· · Web · 8 · 1 · 10

@rysiek Yeah, I also considered trying to find around some way to pass a regular Atom feed as a fedi account, but in most likelihood it’s fedi servers the ones which should support Atom as additional sources

What would the interaction be?

I know you can add Worpress sites to the fediverse: wordpress.org/plugins/activity

But the thing that is visible on fedi is the blog content, like an RSS feed.

With a truly static site, what would you want the interaction to be?

@Argus what does it look like when it's visible on fedi??

@bearwalker Here's a sample - I hooked my old website (now offline) up to the fediverse and wrote a blog.

mastodon.technology/web/status

My wordpress account was the poster, the text of my blog was the post, my featured picture became an attached picture, and the post included a hyperlink to the original blog. Replies to the blog would show up as comments on wordpress.

It was pretty nifty!

@Argus wow that's incredible! I'm going to do it for sure

@Argus the interaction I am interested in is "follow". Such that if some people "follow" my blog on fedi, they get my posts in their timeline whenever I post on my blog.

@rysiek ah, I misunderstood what you meant by a static site. what runs your site?

@rysiek

use reverse proxy magic to serve static files on everywhere except /.well-known/webfinger and some /ap endpoint, and redirect both to a stripped-down activitypub server, something like gotosocial but even less

on the client side you either use JS to pull in the replies or use a proxy (maybe a lua-enabled version of nginx) to rewrite content on the way

@rysiek

the mastodon blog had something about activitypub with static files but your thing would effectively be read only if you did that (as far as i know, anyway)

@ecmel I don't even want to show content from fedi on my blog, but if I wanted to, there are ways to do this with static sites.

I would just love an AP site with *no* back-end running. It sounds like it should *just barely* be possible.

@rysiek
@Argus

Well, maybe got you wrong but I don't know what you mean by “full-blown fedi instance” …
The idea of ActivityPub is that you can have only 1 server (“instance”) where you can post to with multiple clients.
Please don't be misled by mastodon just cause they do not support the Client2Server API part … In the meetings we had various nice demos with different clients posting to different servers.

@sl007
Who's doing a nice demo with the AP C2S part these days? I keep seeing people claim nobody uses it and would like to have at least one or two counter-examples to point to.

@rysiek @Argus

@bhaugen @rysiek @Argus

Well, we even had a Social CG meeting where rhiaro client (sloph) posted to grishka server (smithereen) …
The minutes are here
w3.org/2021/02/06-social-minut

Last demo I've seen was at Moers Hackathon 2 weeks ago with a mobile photo client to pleroma (enriched with a nice link which also showed a nice map ;) but we didn't record.

“people claim nobody uses” -
yeah, I've read it in the internets too :)
Pleroma is using C2S.
Example socialhub.activitypub.rocks/t/

redaktor is using C2S – and I am currently working 10 hours/day for the client and committing per widget github.com/redaktor/widgets-pr
For Android there is socialhub.activitypub.rocks/c/
etc.

At least not “nobody” …

PS
If I would ever had get funding for the 8 people team anything would be ready now. I would never had to do anything closed-source then …
If there would be any funding for diverse clients, they would be there.

@bhaugen @rysiek @Argus

Thank you.

My personal 2 cents impression:
If we wanna be an elephant we would claim nobody is using C2S.
But if we want a diverse, encouraging, participating community, we should talk about C2S and how to improve it …

@bhaugen

After my reply (to late), I might have stumbled about the announcement you were referring to. It was a frustrating bummer.

Do not understand the criticism.
We have tackled point 2 of the announcement
[pleroma, redaktor, AndStatus and personal (indie) clients use C2S]

Then: Point 3 (webfinger) is clearly not a fault of ActivityPub but mastodon.

So, about Point 1
“Using JSON-LD as an RDF serialization is very complicated. It requires the usage of algorithms (e.g. the Expansion Algorithm or the Framing Algorithm) that are incomprehensible and just pure madness”

Indeed, we did not write usage of it by ourselves.
It is 1 of the few dependencies written by people we know. Here we use
github.com/digitalbazaar/jsonl
and it is 1-5 lines to expand, frame or compact and feels easy …

What can we do to improve the C2S situation???
Personally would be keen to demo 1 widget/component each 2 weeks and show how it would interact C2S, how to theme or render statically etc.
We should get C2S people together.

@rysiek I remembered seeming something in that direction at some point, which was probably this post, but I have no idea if it's any useful: jlelse.blog/dev/activitystream

@rysiek Set up RSS for your website and then use one of the RSS→ActivityPub services.

@rysiek How are you hosting it? If using something like Netlify, you could implement something with lamdas/"serverless functions" and then part of the build process push to all the services registered

Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!