Skip to content

Commit

Permalink
Fediverse Preview: Fix links (#1125)
Browse files Browse the repository at this point in the history
* Fix wp_kses for preview

* We can use array_flip to keep the arrays lean

* Changelog
  • Loading branch information
akirk authored Jan 6, 2025
1 parent 441a215 commit 4634fe6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

* Fetching replies for Enable Mastodon Apps
* Fediverse Preview: Fix links

## [4.6.0] - 2024-12-20

Expand Down
8 changes: 4 additions & 4 deletions includes/constants.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@
'ACTIVITYPUB_MASTODON_HTML_SANITIZER',
array(
'p' => array(),
'span' => array( 'class' ),
'span' => array_flip( array( 'class' ) ),
'br' => array(),
'a' => array( 'href', 'rel', 'class' ),
'a' => array_flip( array( 'href', 'rel', 'class' ) ),
'del' => array(),
'pre' => array(),
'code' => array(),
Expand All @@ -46,8 +46,8 @@
'i' => array(),
'u' => array(),
'ul' => array(),
'ol' => array( 'start', 'reversed' ),
'li' => array( 'value' ),
'ol' => array_flip( array( 'start', 'reversed' ) ),
'li' => array_flip( array( 'value' ) ),
'blockquote' => array(),
'h1' => array(),
'h2' => array(),
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ For reasons of data protection, it is not possible to see the followers of other
= Unreleased =

* Fetching replies for Enable Mastodon Apps
* Fediverse Preview: Fix links

= 4.6.0 =

Expand Down

0 comments on commit 4634fe6

Please sign in to comment.