beatonma / django-wm

Automatic Webmention functionality for Django models
https://beatonma.org/webmentions_tester/
GNU General Public License v3.0
12 stars 2 forks source link

Feature request: Add webmention type #25

Closed garrettc closed 1 year ago

garrettc commented 2 years ago

The webmention implementation on my current site allows me to specify the type of webmention, so I can group them on a post, this post for example, showing the webmentions sorted into likes/favourites, reposts/retweets, and comments.

The comment functionality is handled by QuotableMixin, but it would be good to have some optional flags to extend this to cover the other scenarios.

I'm imagining a type field on QuotableMixin that could either be a dictionary of options, or just a charfield, and then some logic in process_incoming_webmention to identify the type.

This would be especially useful when using something like Bridgy.

Happy to take a run at a PR if this is something you'd be interested in adding?