Press "Enter" to skip to content

Using FreshRSS to “Like” blog posts via Webmention – on WordPress

Continuing Peter’s work on hooking up FreshRSS with Drupal to “like” posts, I wanted to do the same on my WordPress site. Knowing nothing about FreshRSS nor WordPress, and unable to peer into the FreshRSS database (the .sqlite file is encrypted?), I went the route (lol) less travelled by, and coded a FreshRSS plugin. Hey, turns out I didn’t need much MVC framework, once I grokked how the CustomCSS plugin worked.

I’m too tired to include a full walkthrough, because I’ve been at this since 8am. Here’s the code on Github. I had to hack FreshRSS so that it fired a hook after a successful “favourite”. I also noticed that poetry wasn’t showing up well on FreshRSS because of a workaround from five years ago, so I submitted my first blogging-related pull request.

After reading Ton’s description of setting up a network of test sites, I did my debugging on a pair of test subdomains. The sites that have been “Liking” each other all day are Crowley and Aziraphale. 😈😇

5 Comments

  1. Olle Jonsson
    Olle Jonsson August 5, 2019

    This is inspiring and motivating!

    • Rosie Le Faive
      Rosie Le Faive September 20, 2019

      Oops! Guess I’ve been stingy on the “Like”s because I’ve liked reading many of your posts! Also, I’m sure the phrase “I heard you on the CBC” is one of PEI’s most common phrases (behind “Who’s yer faaaaaather”) but yeah. 👋

Leave a Reply

Your email address will not be published. Required fields are marked *