Separate setting for which post types to _send_ webmentions for?
Hey guys! The current checkboxes for which post types to receive webmentions for are great. Any chance you might consider adding similar checkboxes for which post types to send webmentions for too?
Thanks in advance!
We have this for acceptance. I have to look to see if that feature covers sending
Right! My request here is to have separate settings for receiving and sending.
can you elaborate on that a bit? what is the specific usecase?
Mostly Bridgy Fed syndication. I link to it from some of my pages, eg https://snarfed.org/resume , but they're not posts, so I don't want to federate them as AP posts.
If you all decide this isn't worth a user-facing setting, I'm happy to do it via a filter or hook if that's possible!
Oh now I see! Do you think we could simply use the setting to handle both ways at the same time? Is there a case you want to send but not receive or vice versa?
I guess my ideal solution would be a blocklist of domains to never send webmentions to. If I had that, I'd put fed.brid.gy into it, and then I'd be ok with both sending and receiving webmentions for pages.
If not that, I think I'd prefer to receive webmentions for pages, but not send them.
Btw, this is definitely my fault in the first place for abusing webmentions as the trigger for Bridgy Publish and Bridgy Fed federation for web. Sorry about that.
I think we can do something in this area.
With blocklists...it is confusing to have so many
I want to think about some reasonable moderation settings... maybe study some similar features in other software
Wait @dshanske did this get implemented?!
@snarfed Sorry, closed the wrong one. I merged the per post one. This is the global default one.
@snarfed have you tried to unhook add_action( 'publish_' . $post_type, array( static::class, 'publish_hook' ), 3 );???
Like for example remove_action( 'publish_page', array( \Webmention\Sender::class, 'publish_hook' ), 3 );
And thanks @pfefferle ! I haven't tried that yet, but I will.
@pfefferle I tried adding this to my local WordPress's functions.php, but when I tested, it still sent webmentions from pages. Am I maybe escaping \Webmention\Sender wrong? I'm not familiar with that namespace syntax.
remove_action( 'publish_page', array( \Webmention\Sender::class, 'publish_hook' ), 3 );
remove_action( 'trashed_page', array( \Webmention\Sender::class, 'trash_hook' ) );