wordpress-webmention icon indicating copy to clipboard operation
wordpress-webmention copied to clipboard

Add images from WebMention?

Open edent opened this issue 2 years ago • 3 comments

I've received a pingback from https://brid.gy/comment/mastodon/@[email protected]/110151657347210229/110151774995722710

The plugin gets the author's name, URL, avatar, and text content. It doesn't include the image along with the post.

Sometimes, people reply with only an image. Or their reply references an attached image. It would be useful to include this as part of the webmention.

The HTML code is:

<span class="p-author h-card">
   <a class="p-name u-url" href="https://mastodon.social/@Edent">Terence Eden</a>
   <a class="u-url" href="https://edent.tel/"></a>
   <a class="u-url" href="https://shkspr.mobi/blog"></a>
   <span class="p-nickname">Edent</span>
   <img class="u-photo" src="https://files.mastodon.social/accounts/avatars/000/007/112/original/37df032a5951b96c.jpg" alt="" />
</span>
<a title="mastodon.social/@Edent/110151774995722710" class="u-url" href="https://mastodon.social/@Edent/110151774995722710">mastodon.social/@Edent/1101517...</a>
<div class="e-content p-name">
   <p>Incidentally, this was my favourite comment when I announced I was doing an MSc.</p><p>The rage it induced powered me through many a tutorial!</p>
</div>
<img class="u-photo" src="https://files.mastodon.social/media_attachments/files/110/151/771/251/554/330/original/a80cc6cfe970ec56.png" alt="" />

edent avatar Apr 06 '23 12:04 edent