Skip to main content

Using IFTTT to syndicate (PESOS) your Reddit saved post to your own IndieWeb website

3 min read

Introduction

This post has been heavily inspired by Chris Aldrich's recent post Using IFTTT to syndicate (PESOS) content from social services to WordPress using Micropub and finally finds an answer to the frustration I had ever since I realised it was not that easy to post bookmark on my Known-based website.

When you own an IndieWeb website, it quickly becomes clear that you want to centralize all your content in one place, including the posts you save on Reddit.

Now, I spend a fair amount of time on Reddit, but i never spend a long time in one go, meaning I usually scroll my feed, save things that catch my eyes, and come back to them later on when I have more time. The frustration comes from the decentralized part : I have saved bookmarks on my browser, in my company's Slack, on Reddit, you name it. The risk is that I finally forgot about some of them and never reads them at all.

If you need more information on IndieWeb, IFTTT, and why this is awesome, I encourage you to read Chris Aldrich's post. In this post, I'll only talk about the particular case I ran into : silo-ing my Reddit saved posts to a Known-based website.

Getting a token

If you played a bit with Known, you know there's no easy way to generate a token on the fly - as opposed to a Wordpress-based website for instance. But that's OK, Give Me A Token is here to save the day.

 The process is not that long nor difficult, and at the end of step 3, you'll have the possibility to download your token file, save it on your disk for later, that's all we need to do with that right now.

The IFTTT recipe

We can now start to create our own IFTTT applet, in the first part (the if), we'll choose Reddit > New post saved by you as a trigger and i the second (the then), we'll choose Webhooks > Make a web request.

All we have left to do is to fill in the 4 fields in the form :

  • URL : your micropub server endpoint (find yours here)
  • Method : POST
  • Content Type : application/x-www-form-urlencoded

The Body part is the trickiest, but once again I encourage you to ready Chris's post which explain it thoroughly. As far as i'm concerned here's what I typed in the Body field - don't forget to replace YOUR_TOKEN_FILE_CONTENT_HERE by the content of the file we previously downloaded :

h=entry&bookmark-of={{PostURL}}&name={{Title}}&content={{Title}}&category[]=reddit&category[]={{Subreddit}}&YOUR_TOKEN_FILE_CONTENT_HERE

And that's it. All you have to do now is going back on Reddit and save a few posts, IFTTT should shortly trigger your webhook call and syndicate your saved posts on your own website.

 

Syndication

@benjaminpirson ‪@VincenzoR ça te rappelle rien? ;-)‬

@monteiro I eat grilled cheese with andalouse sauce, what does that make me?

Read Les Dragons de Meereen: Le Trône de fer 14

Une fois Stannis Baratheon parti reprendre Winterfell aux Bolton, Jon Snow peut enfin redevenir le maître du Mur. Il doit cependant composer avec Mélisandre, la prêtresse rouge, qui semble décidée à lui apporter son aide. Les flammes lui révèlent un avenir, mais lequel ?

A Meereen, le blocus du port par les esclavagistes s'éternise, et Daenerys refuse d'envoyer ses dragons y mettre un terme flamboyant. L'enquête visant à démasquer les coupables des meurtres qui ensanglantent le pouvoir piétine elle aussi. Seul un mariage pourrait dénouer la situation, mais les prétendants sont nombreux et les conséquences hasardeuses.

Quant aux Lannister, ils vont devoir attendre encore un peu avant de pouvoir décoller la tête de leur lutin de frère : le ravisseur de Tyrion a de tout autres projets pour ce dernier.

By George R. R. Martin

Replied to a post on github.com :

@paulkass apparently i'm up to date with the git repository on commit 9d7f536da04c6ebffb019d08546941fb3e70caa3

Bon, et maintenant, c'est possible de tooter depuis l'#IndieWeb?

Replied to a post on github.com :

I'm experiencing the same issue with neovim 0.4.3.

Let me know if any other information might be of use.

‪Playing playmobil with my sons when my 4yo asks "say my name". Apparently "Heisenberg" wasn’t the expected answer.