snarfed / bridgy

📣 Connects your web site to social media. Likes, retweets, mentions, cross-posting, and more...
https://brid.gy
Creative Commons Zero v1.0 Universal
726 stars 52 forks source link

Filter the type of webmentions? #1347

Open edent opened 1 year ago

edent commented 1 year ago

Is is possible to tell Bridgy that I only care about mentions & replies - and not about likes and reposts?

Yesterday I posted a link to my blog on Mastodon. This morning I work up to: 139 comments

Nearly all of them were likes and reposts: Screenshot of lots of comments

I would love a setting on Bridgy so it would only send the WebMentions types I care about. Is that possible?

Thanks!

snarfed commented 1 year ago

Interesting! I'm actually a bit surprised I haven't heard more requests for filtering like this before. Maybe since most people do it on their own sites. You're on WordPress, I know the Semantic-Linkbacks plugin runs post type discovery on inbound webmentions and exposes the result, both in the db and all the way through to rendered comments. eg on https://snarfed.org/2022-11-06_47842#comments, the wms have u-comment, u-like, and u-repost classes.

Are you on a custom theme? You could use that data to filter out likes and reposts, automatically send them to the trash, or anything else...?

snarfed commented 1 year ago

cc @pfefferle @dshanske

edent commented 1 year ago

I think I raised the issue with the plug in ages ago (although I can't find it now).

Yes, I'm on WordPress with a heavily customised theme. I'll investigate whether the theme itself can search for and delete comments. Not something I've attempted before - but where there's a will!

Thanks for the great service, BTW. It's lovely seeing comments from all around the web.