@skobkin Yeah, so I need to rewrite the configuration routine according to that. Thanks.
Top-level
@skobkin Yeah, so I need to rewrite the configuration routine according to that. Thanks. 15 comments
@drq But it could be done in the 'login' command easily, so it's not necessary. Alexey Skobkin, I was meaning to write about ActivityPub but have never gotten around to doing that. There were two posts by Eugen about building a minimal ActivityPub server in Ruby (but trivially portable to any language). I send links to them to anyone who wants to get started quickly. Alexey Skobkin, one thing to keep in mind tho: they are outdated and if you follow them as is your implementation won't work with modern Mastodon. The Digest header is now required. It's a sha256 of the request body and you need to include it in the signature as well. Thank you, guys! Will take a closer look. What I'm thinking about is a kinda federative media. Someone writes an article on the media's ActivityPub server. The problem here is censorship. The server could be banned by RKN and it would be great to read the article via other servers in the federation. For instance, it could be a mobile app that connects to a random server (without auth) and use it to get access to the article. @drq @ludivokrug @grishka @skobkin @lionalex @drq @ludivokrug @grishka I'm not sure if what're you planning to do is the same as for what purpose ActivityPub was created. |
@drq
Yes, something like that.
You can probably just add two commands to your bot like:
./bot login # prints URL
./bot retrieve-token <code> # takes code, gets token and then stores it.