User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
Admin
completely blind computer geek, lover of science fiction and fantasy (especially LitRPG). I work in accessibility, but my opinions are my own, not that of my employer. Fandoms: Harry Potter, Discworld, My Little Pony: Friendship is Magic, Buffy, Dead Like Me, Glee, and I'll read fanfic of pretty much anything that crosses over with one of those.
keyoxide: aspe:keyoxide.org:PFAQDLXSBNO7MZRNPUMWWKQ7TQ
Location
Ottawa
Birthday
1987-12-20
Pronouns
he/him (EN)
matrix @fastfinge:interfree.ca
keyoxide aspe:keyoxide.org:PFAQDLXSBNO7MZRNPUMWWKQ7TQ
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium Should work
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium Right.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium @xogium If your on Linux take a look at Hugo. It has ways of doing the same kind of thing.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium @xogium So the mastodon api is what apps like tweesecake use. It’s not part of the activity pub protocol. I looked at write freely and didn’t use it for accessibility reasons. I write my posts in markdown, save them in a special folder, and run my powershell script to update the blog.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium @xogium Oh got it. If it supports the mastodon API giving the post url would work. But I doubt it does.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium The disadvantage of my approach is if I don’t share a post on this account, it can never have comments. Also people get horrible warnings because error checking is for weaklings, not brilliant men like me.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium You mean write freely posts to your mastodon account for you?
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium Then any reply to that toot shows up as a comment.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium No, you have to refer to the url of a post on mastodon. So the workflow is: post to the blog, share on mastodon, then update the blog post with the url of your toot.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium Nope. It can be a post on any server that supports the mastodon api. When a visitor loads the page the JavaScript runs and goes to get the comments. It all happens client side. That’s why you have to have the plain html link to the comments. If someone visits with JavaScript off the comments won’t load.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium Oh! You're absolutely correct. I moved that for...reasons...Yeah. So the full bit you would insert would be everything between lines 128 and 136.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium We can jump on a call Monday night and I can help if you haven’t figured it out by then
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium I’m not at my desk. But view source on an article from my blog and it should be obvious. You’re looking for the fediverse comments js file in the head section and the div in the body that refers to fed.interfree.ca
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium Basicly you ad some JavaScript in the head section, and a div on every post with the url of a mastodon post to get replies to.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium I’ve never used write freely sorry. You’d need to modify the template or theme somehow.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium You can get the JavaScript for fediverse comments with a quick view source if that’s all you want.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium Took me two weeks. But I’ve learned if I want it to be accessible I have to do it myself.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium I can send you the code. But you’d need the dotnet 9.0 sdk, powershell, rclone, go, tinyfeed, and probably other things lol
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
@xogium No. It’s a custom statiq template with lots of JavaScript for comments and betula for the links, updated by rclone and all wrapped up in a powershell script.
User avatar
🇨🇦Samuel Proulx🇨🇦 @fastfinge@interfree.ca
8mo
Ah, good. Just got a delivery failure when emailing myself. Looks like iCloud blocked its own smtp server for sending itself too much spam.