Liked https://www.instagram.com/p/Blim636FQBO/
“Scenes from the Elie chain walk. #heatwave #fife4life #dangerfun”
14 Likes, 5 Comments - Ed B (@edbroughton) on Instagram: “Scenes from the Elie chain walk. #heatwave #fife4life #dangerfun”
Liked https://publog.stuifzandapp.com/posts/810
Implementing Microsub yourself (part 1)
In this article I will try to show how you can implement a very simple version of Microsub yourself.
Let's start
The protocol for Microsub consists of a number of actions. The actions can be provided with a parameter action
to the microsub endpoint. When implementing a Microsub server it's possible to create a version of responses where you don't need to implement the full thing. It depends on what you want to use. At the moment we will only implement channels
and timeline
.
Simplified channels
For example the channels
action provides 4 different functions in the full implementation.
- Get a list of the available channels
- Create a new channel with a name
- Update the name of a channel
- Delete a channel
A great way to start is to only return a fixed number of channels. That way you only implement function 1 and only return a successful response for functions 2, 3 and 4. Clients will work when you do this and it becomes a lot easier to implement.
As an example in PHP:
if ($_GET['action'] == 'channels') {
$channels = [
[ 'name' => 'Notifications', 'uid' => 'notifications' ],
[ 'name' => 'Home', 'uid' => 'home' ],
];
header('Content-Type: application/json');
echo json_encode(['channels'=>$channels]);
}
Simplified timeline
The timeline
action provides 1 function. There are 2 parameters that allow paging. For a simplified version this does not need to be implemented.
The timeline
action should return a response that looks like this:
{
"items": [
{ ... },
{ ... }
],
"paging": {}
}
By leaving paging
empty you signal to the client, that there are no pages available at the moment.
The items
array should be filled with JF2 items. JF2 is a simplified version of Microformats 2 that allows for easier implementation by clients and servers. An example could look like this:
{
"type": "entry",
"name": "Ekster now supports actual Indieauth to the Microsub channels. It's now possible for example to connect with http://indiepaper.io and archive pages to a channel. But of course the possibilities are endless.",
"content": {
"text": "Ekster now supports actual Indieauth to the Microsub channels. It's now possible for example to connect with http://indiepaper.io and archive pages to a channel. But of course the possibilities are endless.",
"html": "Ekster now supports actual Indieauth to the Microsub channels. It's now possible for example to connect with indiepapier.io and archive pages to a channel. But of course the possibilities are endless."
},
"published": "2018-07-15T12:54:00+02:00",
"url": "https://p83.nl/p/795"
}
If you return a list of the items from your microsub endpoint, you could see them in the client. Now the harder part is, gathering these items from feeds and websites and converting these to JF2.
Simplified Microsub endpoint
And create a file with the following code called endpoint.php
in the web root of your website.
The code can be found here: endpoint.php
Add the following information to your <head>
tag:
<link rel="microsub" href="https://yourdomain.com/endpoint.php" />
That's all there is to it. Now you can Login with Monocle.
Jump around dog 🎶
Liked https://i.imgur.com/9x9iH2p.gifv
Dad tries daughter's gymnastic moves
<blockquote class="imgur-embed-pub" lang="en" data-id="9x9iH2p"><a href="https://imgur.com/9x9iH2p">Dad tries daughter's gymnastic moves</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
Liked https://boffosocko.com/2018/07/19/thank-yous-for-my-ala-piece/
I wanted to take a moment to say a very special thank you to Dougal MacPherson who drew the spectacular cartoon header for my article that appeared in A List Apart today.
The sketch is full of whimsy and has an entertaining yet subversive subtext that so wonderfully underlines the piece. I couldn’t have asked for more creative and apropos analogy much less a piece of artwork.
I’ll also give an exuberant thank you to my fantastic editor Nick Tucker who stuck with me through thick, think, time zone differences, and head colds for each of us to finally get the piece across the finish line. I’ll send him my apologies again for the flabbiness of the original draft which should have had one more go-round before he bothered to read it. But in the end it’s far better for his care and attention.
And finally, a special thanks and a big shout out to the brilliance, creativity, and tenacity of all those (big and small) in the IndieWeb community who so heavily influenced not on the piece, but my life in general. You’re all making the web and the world a better place for the care you put into your work (and play).
Thanks again Dougal, Nick, and IndieWeb!
Syndicated copies to:Liked https://twitter.com/holfordlovell/status/1018503368795275265
Donna Holford-Lovell on Twitter
<blockquote class="twitter-tweet"><p lang="tl" dir="ltr">Painting Japanese dolls at Akiu Craft Village <a href="https://t.co/kxvbilFSJm">pic.twitter.com/kxvbilFSJm</a></p>— Donna Holford-Lovell (@holfordlovell) <a href="https://twitter.com/holfordlovell/status/1018503368795275265?ref_src=twsrc%5Etfw">July 15, 2018</a></blockquote> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
Liked https://www.instagram.com/p/BlN5UnXD2lN/
“Sigue tu pasión, mantente fiel, nunca sigas el camino de otra persona a menos que estés en la misma sintonía , da todo tú esfuerzo, no te…”
84 Likes, 6 Comments - Gabriela Guzman (@i_gabs) on Instagram: “Sigue tu pasión, mantente fiel, nunca sigas el camino de otra persona a menos que estés en la misma…”
Liked https://i.imgur.com/FWUJxiY.gifv
Every breath you take, every move you make
<blockquote class="imgur-embed-pub" lang="en" data-id="FWUJxiY"><a href="https://imgur.com/FWUJxiY">View post on imgur.com</a></blockquote><script async src="//s.imgur.com/min/embed.js" charset="utf-8"></script>
Comments
22 Jul 2018 at 11:57