Skip to content

Disable outgoing Webmentions #525

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Disable outgoing Webmentions #525

wants to merge 3 commits into from

Conversation

pfefferle
Copy link
Owner

fix #524

@pfefferle pfefferle requested a review from Copilot June 20, 2025 20:49
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new option to disable outgoing Webmentions while updating the existing incoming Webmentions option. The changes include updating the editor plugin to provide both incoming and outgoing controls, adjusting the meta key handling in PHP, and augmenting the block registration to support the new meta field.

  • Updated editor plugin UI and asset bundle for handling two webmention options.
  • Modified server-side meta checks and post meta registration to account for outgoing webmentions.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/editor-plugin/plugin.js Updated CheckboxControl labels and added a new checkbox for outgoing.
includes/class-webmention.php Extended meta check to include outgoing webmention disable key.
includes/class-block.php Registered new meta for outgoing webmentions.
build/editor-plugin/plugin.js Updated bundled plugin code to integrate new checkbox controls.
build/editor-plugin/plugin.asset.php Updated asset version to reflect the changes.
Comments suppressed due to low confidence (1)

src/editor-plugin/plugin.js:23

  • [nitpick] The label 'Disable incoming' might benefit from additional clarity. Consider renaming it to 'Disable incoming webmentions' to clearly differentiate it from the 'Disable outgoing' option.
				label={ __( 'Disable incoming', 'webmention' ) }
@dshanske
Copy link
Collaborator

Want me to take a look?

@pfefferle
Copy link
Owner Author

sure!

@pfefferle
Copy link
Owner Author

@dshanske have you had the chance to check the PR?

@dshanske
Copy link
Collaborator

I planned to look this coming weekend.

@dshanske
Copy link
Collaborator

Requesting a Classic Editor fallback for this feature.

@pfefferle
Copy link
Owner Author

@dshanske is that a requirement for this PR?

@dshanske
Copy link
Collaborator

dshanske commented Jul 1, 2025

In my opinion we should maintain compatibility for people who don't use the block editor.

@pfefferle
Copy link
Owner Author

It was not an argument against it, simply the question if it should be part of this PR!?

I am not very familar with the classic editor, so maybe you can give it a try in a separate PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants