It is surprisingly complex to receive webmentions, at least if I want to display some useful information about them on my posts. Have been working on it all day!
So far I can parse some simple microformats2 info and may fall back to open graph if I don’t find anything. Generating a unique ID requires my first use of crypto (for generating hmac hash of a webmention).
Just gotta store them and then build the white / black listing logic. And finally attaching the approved ones to the correct post and rendering them.