#webmentions

Jamie Tanna 12 Jan 2020 18:21

Since I set up Webmentions in January 2018 using Webmention.io, I've been starting to receive more interactions with my site across the social web.However, up until today, the only way I'd be able to see what Webmentions I'd received was to go and actively check. I'd, many times a day, open …

That’s a lovely idea. I’m personally using Telegram’s Bot API which is quite powerful!

I just added a little form in the webmentions section on the posts so you can send your webmention manually if it didn’t hit my website. Or, you can also use the button ‘Write a comment’ to create a comment (that can be anonymous) through the comment parade service.

For the curious ones out there, the code is simple. Please remember that I’m using Go templates with Hugo:

<form action="https://webmention.io/hacdias.com/webmention" method="post">
  <input name="source" placeholder="Have you written a response? Paste its URL here!" type="url" required>
  <input name="target" value="{{ .Permalink }}" type="hidden">
  <input value="Send Webmention" type="submit">
</form>

<form method="get" action="https://quill.p3k.io/" target="_blank">
  <input type="hidden" name="dontask" value="1">
  <input type="hidden" name="me" value="https://commentpara.de/">
  <input type="hidden" name="reply" value="{{ .Permalink }}">
  <input type="submit" value="Write a comment">
</form>

Oopsie doopsie. Just found a bug on my webmention endpoint where I was not writing the webmentions to the correct endpoint. Right now, I’m storing them as plain webmentions from webmention.io. Probably I should think about a simpler way to store them to parse them easily later on the theme.

Right now I have an index that tells, for each permalink on my blog, which likes and “others” it has. I show the likes as mere “heads” on the post and then the “others” that might be reposts or retweets. The truth is that any of those can contain content.

What do I need to store? That’s the important question.

Let’s see… I just added some webmentions functionality to the website and you can see them live on my last post about data. However, I don’t feel very confident… I’m saving everything to the file system and rebuilding every time with Hugo… Will post something soon.