Released #Pterotype version 1.1.1! Sync blog posts and comments from your WordPress blog with Mastodon and let users comment on posts by replying to the Mastodon thread!
Pterotype is available in the WordPress plugin repository and I'd appreciate it if you signed up as a beta tester at https://getpterotype.com/beta
@jdormit Impressive! What's next?
- Respect Wordpress' user structure. The posts at https://qa.getpterotype.com are actually from "admin" user, not "blog".
- A way to fetch a comment in order to reply to it. Can be dine with replacing links with date and time to the comment-originating post instead of an anchor. Or make Wordpress somehow output the original post's JSON when queried with an anchor and "Accept: application/activity+json"
- Avatars. Both Wordpress users and other AP users should see each others' avatars.
@drequivalent A few thoughts about these. I actually deliberately chose to make all posts from users with publish permission come from a single "blog" Actor, so that all the posts from the blog would go to the same outbox. Comments from subscriber users still show up as being from the individual user, though.
@drequivalent Comments are searchable from Mastodon, but it's janky. The problem is that comments are identified by an anchor in the URL, which doesn't actually get sent to the server. To get around that, I added a special query variable to the comment URL so that e.g. https://myblog.com/post#comment-1 becomes https://myblog.com/post?pterotype_comment=comment-1. For an ordinary GET, the plugin redirects the second URL to the first, but if the Accept header is application/ld+json than you get the AP JSON instead
@drequivalent so if you search https://qa.getpterotype.com/hello-world-2/?pterotype_comment=comment-28 the Mastodon reply pointing at the WordPress comment should come up.
And yeah, there's a bunch of work left to do with avatars and customizing the ActivityPub actor presentation (name, handle, etc.).
Hm. What if it could do both individual users and the whole blog? I know Plume does this - it has a Blog actor and User actor. You can subscribe to both.
I think Peertube does that also.
@jdormit you could also host several "blogs" on the same Wordpress, how cool is that.
@drequivalent There actually already are individual actors for each user, so it wouldn't be very hard to dual-publish blog posts to individual outboxes. I'm not sure how useful that would be, though...
What do you mean by hosting several blogs on the same WordPress? Do you mean multiple WordPress installations on the same server, or something else?
It would be useful because some wordpress instances are not single-user, you know. Some are actually small publishing joints hosting different authors with different news and different views. What if I only want one or two of them in my feed?
As for blogs, I mean several Blog actors, which an author can choose to post to, the way Plume also does it. But that's a little pie in the sky may be. Or may be not.
@drequivalent Ah true, that makes sense. In terms of choosing which feed you publish your post to, I've thought about that, and it's probably coming at some point. But it's pretty low on the priority list at the moment (got to figure out the basics first).
Well, that's basic user@instance logic, i think.
As for different feeds, maybe the wisest thing to do is to tie them to Categories then. It kinda fits description.
The difference may be that in Plume their "blogs" are user-defined while WP's "categories" are administrator-defined. May be they can be whole different things altogether. Food for thought.
@drequivalent yeah it probably should. I'm not actually doing anything with the user actors yet though, so there wouldn't be much point. If I start publishing individual user feeds alongside the blog feed then I'll definitely make the users discoverable
@jdormit i'll be try this!
Hey @jmanumeza - thanks for checking out Pterotype! Do you have SSL set up for your site? Pterotype will only be able to federate your content over https
@jdormit that's the issue, thanks! I'll check for that
This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!