In reply to https://social.coop/@jsit/111665763323284535 by @jsit. So, the …

So, the upcoming version of the AP plugin should, I think, allow replies (like, by a site author) to a previous “Fediverse comment” to “federate back.” That should be enough for most folks.

What I’m doing right now, though, is … I use a trick that (for now) requires some fairly specific markup inside a very specific block. And then this little “add-on” mu-plugin of mine takes it from there (and adds an inReplyTo property to the post’s ActivityPub representation).

Very much a work in progress!

Likes, Bookmarks, and Reposts

  • Jay

6 responses to “In reply to https://social.coop/@jsit/111665763323284535 by @jsit. So, the …”

  1. Jay Avatar

    @jan @janboddez Yep, I received this on my instance.

  2. starrwulfe Avatar

    @jan @janboddez so hang on a sec; how do I do this on my own WP blog here? What do I “aim” the activitypub_in_reply_to field at to get the “inline federated reply” trick to work?

    (side note; how do I put the shortlink next to the date as the permalinks like how you’ve done?)

    1. Jan Avatar
      Jan

      You using IndieBlocks? Cool! 😃

      So, I by now did get this reply twice, once through Webmention and once via, I think, ActivityPub, and if I look at your reply’s ActivityPub representation, I see the inReplyTo set correctly. Does that mean you figured it out? 🙂

      inReplyTo is simply the URL of the post you’re replying to. And then you’ll also want any mentioned accounts in the cc property (but the plugin normally already does that).

      [H]ow do I put the shortlink next to the date as the permalinks like how you’ve done?

      I use another “trick,” in my theme, a filter (render_block_core/post-date) to modify the output of the Post Date block. Similar to how IndieBlocks adds microformats.

      1. starrwulfe Avatar

        So I didn’t get this particular webmention for some reason. Could it be because my initial message to you also had “activitypub-in-reply-to” custom field set to the same thing? Can a post be both set for webmentions and activitypub at the same time?

        I’ll leave this one “naked” and just use the block’s action to see how this works….

        1. Jan Avatar
          Jan

          I was thinking it might be because of the #comment-1841 at the end of the permalink of my comment above, that your parser—the Webmention plugin, I think?—would perhaps not be able parse only that bit of the page, rather than the main post.

          To be honest, I’m not sure what the activitypub_in_reply_to custom field even is; must be another plugin adding that. I have an “mu-plugin” modify, in PHP, the ActivityPub object sent out by the ActivityPub plugin for WordPress; to figure out what to add, it runs a couple regexes on the post content. No custom field involved.

          1. starrwulfe Avatar

            I never got this one though. Hmm, I need to figure out what my parser is actually doing or start over from scratch with a different system perhaps. 🤔

            how do I go about doing the µplugin thing?

            In reply to https://jan.boddez.net/notes/9a5f268a52#comment-1846.

Leave a Reply

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