Micro.blog comments

Inspired by @vincent's implementation of conversation.js on his self-hosted microblog, I added comments to mine this morning. Example.

(In lieu of elegant JSX, mine's just a long stack of document.createElement()s all appended together. But it works!)



Conversation:

@rich_text it just occurred to me that I forgot to add the code to “real” posts, not just “microblog” posts.

@rich_text ...so I fixed it, on my phone while waking dog, by copying conversation div and the script, from 1 file to another. Editing repos on GitHub is weird but not crazy.

@rich_text ...and I can keep using this conversation thread to test additional stuff...

@rich_text this is comment #5. It won't appear in my localhost testing right now because I've added a local cache of results from conversation.js. That way I can develop/reload without hitting m.b servers over and over. If I stop my local server, and restart it in prod, this comment will get added to the cache. Then I can go back to dev mode. Let's see if it works...

Webmentions

As I mentioned here, I implemented micro.blog's conversation.js to display comments on my blog. Today I've been trying to get my head around Webmentions, and I see that "When you use Micro.blog to reply... Micro.blog will send a Webmention for that post if it is hosted outside of Micro.blog..." So if I implement WM correctly, I might get some comments 2x - in my "Conversation: " div and my "Webmentions: " div. A problem I hope to have, then solve.

(This is also a test.)