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 thoughts on “Using FreshRSS to “Like” blog posts via Webmention – on WordPress”
This is inspiring and motivating!
I learned about your blog via your ‘like’ of one of my posts, which is now a comment over on http://actsofvolition.com/2019/09/spintime-dj-on-cbc/#comment-11866
The system works!
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. 👋