Skip to content

Commit 67d1aaa

Browse files
committed
Transformer: Remove embed filter once done. (#1388)
* Transformer: Remove embed filter once done. Fixes #1387. * Add ticket reference * Let's not unit test this
1 parent 4eaaebb commit 67d1aaa

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Fixed
1111

12-
* Remove `activitypub_reply_block` Filter after Activity-JSON is rendered, to not affect the HTML representation.
12+
* Remove `activitypub_reply_block` filter after Activity-JSON is rendered, to not affect the HTML representation.
13+
* Remove `render_block_core/embed` filter after Activity-JSON is rendered, to not affect the HTML representation.
1314

1415
## [5.3.1] - 2025-02-26
1516

includes/transformer/class-post.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ protected function get_content() {
533533
// Don't need these anymore, should never appear in a post.
534534
Shortcodes::unregister();
535535

536+
\remove_filter( 'render_block_core/embed', array( $this, 'revert_embed_links' ) );
536537
\remove_filter( 'activitypub_reply_block', '__return_empty_string' );
537538

538539
return $content;

readme.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ For reasons of data protection, it is not possible to see the followers of other
131131

132132
= Unreleased =
133133

134-
* Fixed: Remove `activitypub_reply_block` Filter after Activity-JSON is rendered, to not affect the HTML representation.
134+
* Fixed: Remove `activitypub_reply_block` filter after Activity-JSON is rendered, to not affect the HTML representation.
135+
* Fixed: Remove `render_block_core/embed` filter after Activity-JSON is rendered, to not affect the HTML representation.
135136

136137
= 5.3.1 =
137138

0 commit comments

Comments
 (0)