janboddez

@janboddez@indieweb.social

Mechanical engineer, amateur web developer, mediocre guitarist. Likes web standards, accessibility, #PHP#Laravel and #WordPress, mostly—the #IndieWeb, and #PunkRock. #nobot

This profile is from a federated server and may be incomplete. Browse more on the original instance.

janboddez, to random

Need to free up some time to work on this again. 🙁 https://jan.boddez.net/notes/66150cd0f2

janboddez, to random

I don't use WordPress' embeds (or oEmbed in general).

I did at one time, however, fetch outgoing links, parse things like Open Graph tags, and store (part of) the outcome as custom fields, which I'd then use in my own "template."

I want to bring some of that back.

janboddez,

Even though it's basically broken even on my current site, it's small things like this that keep me from moving (to a proper WP theme). There's a few more, too, like the sparklines (mostly a hack) and a couple minor styling issues. And the fact that stuff will end up being broken and probably stay broken for a little while

janboddez,

Ah. I forgot I open-sourced this.

I also know why it's broken. I renamed my CPTs to indieblocks_* and forgot to update this plugin accordingly. https://github.com/janboddez/open-graph-parser/blob/88361b47f949ae4d2099c37ad58eaf1895ee5302/includes/class-open-graph-parser.php#L42

janboddez,

Some sites will block you if you don't send along a certain user-agent or cookie. https://github.com/janboddez/open-graph-parser/blob/88361b47f949ae4d2099c37ad58eaf1895ee5302/includes/class-open-graph-parser.php#L180

I apparently set up a filter to allow tweaking these for different sites. And because I'd rather not be accused of enabling "paywalls" to be bypassed.

janboddez,

Might integrate this into IndieBlocks, behind a setting of course. Not because I like feature creep, but because it sort of depends on it anyway, and it'd be one less plugin for me to maintain.

janboddez,

Done. https://github.com/janboddez/indieblocks/commit/f74313b96096f442a941b1548af474ff2ed9741c#diff-42f0250cf558e550d34a4f1bf6481652eeeb55941ef2a5385eec6cc5bf97770c

There's some overlap here with the webmention avatar code, I'll address that eventually.

I created a "generic" parser class a while ago when I decided to have the Bookmark, Like, etc. blocks display actual titles rather than a bare URL. I'm reusing some of that.

The downside is the parser will always look for microformats, even if we're not actually using them. The upside is everything is cached for 1 hour.

janboddez, to wordpress

Tried deploying to WP.org straight from—I know—GitHub and it seems to work, yay!

I’m always super late at adopting these things. (And generally stay away from hypes. I don’t use npm or Tailwind or SCSS. No GameStop stock for me. I use a 9-year-old Windows laptop. And so on.)

(https://bddz.be/Qk9)

janboddez,

@chris Yes, exactly. Used to do it “manually until it hurts” and therefore not very often. Plus, SVN is kinda yuck.

janboddez, to random

The different Fediverse servers (Mastodon, Pixelfed, Lemmy, etc.) are a bit like CMSes. As long as they spit out valid HTML/RSS and support pingbacks/Webmention, it doesn’t really matter which one you use; you’ll always be able to “interact” with other sites, uh, “platforms.”

Of course, actual ActivityPub implementations differ among services, but which one you go for will likely be decided “other” features (supported content types, support for a theming system, moderation tools …).

janboddez,

Some are definitely better at displaying certain types of content. Some have filters! Or custom emoji! Some might let you follow people but not author content. Or the other way around. If a single account on a single social media silo was all you ever needed, you’re—by definition—much better off on the “Fediverse.” But there are very valid reasons to establish multiple presences on more than one server.

janboddez, to wordpress

Update on my adventures: I’ve figured out how to ditch the articles/ front that I use on my article (but not note) URLs from my author permalink, yet retain working author archives. Now to add all federated post types to that author page’s query, and I have a 1-on-1 HTML representation of my ActivityPub outbox. (I had my author URL set to my homepage, it being a single-user site and all. But my homepage only shows articles, so that wasn’t ideal. This, however, is great)

janboddez,

Been geeking out a bit too much on all this stuff. I blame the weather (way too hot to do anything outside).

On the upside: working on my very own block theme, I’ve discovered a couple more issues with my plugins.

janboddez,

I hosted my own Mastodon instance for over 3 years. It was easy. It also required a heck of a lot of storage, and I, a long-time RSS fan, never found its federated timeline very useful (and there were people on there that I didn’t follow or otherwise know, on my very own “website”).

Having a Fediverse presence that I can fully control (its structure, its URLs, what gets shown, and federated, and stored, and so on) is something I look forward to.

janboddez, to random

Same discussion all over again. (This is not a “dunk” or anything. It’s a valid concern.)

It’s about fair use as much as anything. After all, it’s always been possible (and allowed) to quote (short bits of) and link back to web pages from all over the internet. (There are rules too it, of course.)

> If I make a comment on Mastodon my expectation is that it will not be visible on another web site or app. Just like for conventional/centralized web sites and apps.
https://veganism.social/@beforewisdom/110547901069110893

janboddez,

@Edent Absolutely. Yet people did “flee” to the Fediverse to escape the prying eyes (and blatant abuse), and some would rather not go “viral” (or be discovered, beyond perhaps a small group of friends) at all.

Which is fair. That’s why you can lock your account. Which is, again, no guarantee. But the same is true for email. A malicious mail server could also publish everything it gets sent.

Edent, to random
@Edent@mastodon.social avatar

My single character domain name is coming up for renewal.

Trying to work out if I can transfer it to a cheaper registrar.

Read the story behind it https://shkspr.mobi/blog/2020/08/buying-a-single-character-domain-and-3-character-fqdn-for-15/

janboddez,

@popey @Edent I occasionally move domains to a cheaper registrar. (I still use three or four of them, somehow.) Usually the price difference is negligible, though. About the renewal dates: don’t really care, that’s what autorenewal is for. (The one exception is, well, when I really want to move to that cheaper registrar.)

janboddez, to wordpress

Been playing with ’ ActivityPub plugin a bit. I know a “blog-wide actor” is in the making that would make it work with my non-standard author URL (I have it set to the homepage), but I just bypassed the check, made requests to the homepage return the “author JSON,” and use a filter to hard set a user ID.

Now I want to able to filter what (not) to federate (based on more than just the post type, like a category, a custom field, etc.). I want to be able to set the content based on the …

janboddez,

… same criteria, and the object type, again, basically per post. (This a new filter would solve.)

I would also like to eventually create a page that displays only/all my federated posts (or post types), like a “stream” or something, and then set my actor URL to that rather than the homepage (or author page). This, too, I think, can already be done by filtering the, in my case, ’cause of the hack above, author_url.

Edent, to random
@Edent@mastodon.social avatar

Weird reports in the media about how panels "don't work when it is too hot."

Bollocks!

There may be a small efficiency dip, but our roof still generated over twice our daily use of electricity.

https://botsin.space/@solar/110544413684731551

janboddez,

@Edent Injection prices going negative due to excess supply may play a bigger role than the few percentage points efficiency loss. (Net metering, while it lasts, solves this, so I guess [?] the UK is still "safe." And so would a battery, though it may not be worth the cost.)

janboddez, to wordpress

Still in the process of converting my site to proper, I added a bit of .

There’s probably plugins for this, but I’m simply calling highlight.js and a tiny CSS file from my child theme, for now. https://github.com/janboddez/janboddez-child/commit/d2b15c48bea0fbc7d2c640a388391268395bfe53#diff-01c9525afc2c87cfcb03124117c9d0ebb067029f6c955a607fa0fd4274aca556

janboddez,

@chrisshaw Couple years ago, I really wanted to use Laravel more often, so that’s what I did. Looked into various ready-made admin panels, but in the end decided to stick to WP. I liked having “full” control over the front end, though.

I then got into the whole “IndieWeb” thing, and lately I’ve been trying to come up with new and “easier” ways of adding microformats, etc. to WordPress sites (because that’s what people actually use).

Hoping my site can serve as an example, eventually.

janboddez,

Archived the child theme repo. I’m going to bundle my site-specific tweaks here instead: https://github.com/janboddez/jan.boddez.net

So far, it’s a handful mu-plugins and, well, that child theme. I could ditch the mu-plugins, but they’re handier than a child theme, really, to really quickly test things and turn them off again.

janboddez,

E.g., here’s how I get my author archive URLs to behave: https://github.com/janboddez/jan.boddez.net/blob/main/wp-content/mu-plugins/author-archive.php. While this is how I tweak ActivityPub posts based on, e.g., category: https://github.com/janboddez/jan.boddez.net/blob/main/wp-content/mu-plugins/activitypub.php.

Ain’t perfect, but it works.

janboddez,

It’s really quite interesting, the filter hooks the plugin for comes with. Like, you definitely can tweak your profile page (as displayed by, e.g., Mastodon) a bit.

cambridgeport90, to random

Is there a better way of finding feeds than by typing <site in question> RSS Feed into Bing?

janboddez,

@thgs @cambridgeport90 If the links are in the page’s HTML, most feed readers would be able to find them; you should be able to just input the site URL (e.g., its homepage URL), and most readers should then be able to present you with a list of available feeds.

Some sites have separate, extra feeds for different site sections, so you might see a slightly different list when you input those sections’ URLs.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • thenastyranch
  • magazineikmin
  • ethstaker
  • InstantRegret
  • tacticalgear
  • rosin
  • love
  • Youngstown
  • slotface
  • ngwrru68w68
  • kavyap
  • cubers
  • DreamBathrooms
  • megavids
  • mdbf
  • modclub
  • GTA5RPClips
  • normalnudes
  • khanakhh
  • everett
  • cisconetworking
  • osvaldo12
  • anitta
  • Leos
  • Durango
  • tester
  • JUstTest
  • All magazines