Skip to content

Commit 2c49e6f

Browse files
authored
Comments: Decode html entities before using them (#1337)
* Comments: Decode html entities before using them * Changelog
1 parent 3a913e8 commit 2c49e6f

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2121
* The Outbox purging routine no longer is limited to deleting 5 items at a time.
2222
* Undo API for Outbox items.
2323
* Allow Activities on URLs instead of requiring Activity-Objects. This is useful especially for sending Announces and Likes.
24+
* Ellipses now display correctly in notification emails for Likes and Reposts.
2425

2526
## [5.2.0] - 2025-02-13
2627

includes/class-comment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ public static function register_comment_types() {
655655
'type' => 'repost',
656656
'collection' => 'reposts',
657657
'activity_types' => array( 'announce' ),
658-
'excerpt' => __( '… reposted this!', 'activitypub' ),
658+
'excerpt' => html_entity_decode( \__( '… reposted this!', 'activitypub' ) ),
659659
/* translators: %d: Number of reposts */
660660
'count_single' => _x( '%d repost', 'number of reposts', 'activitypub' ),
661661
/* translators: %d: Number of reposts */
@@ -674,7 +674,7 @@ public static function register_comment_types() {
674674
'type' => 'like',
675675
'collection' => 'likes',
676676
'activity_types' => array( 'like' ),
677-
'excerpt' => __( '… liked this!', 'activitypub' ),
677+
'excerpt' => html_entity_decode( \__( '… liked this!', 'activitypub' ) ),
678678
/* translators: %d: Number of likes */
679679
'count_single' => _x( '%d like', 'number of likes', 'activitypub' ),
680680
/* translators: %d: Number of likes */

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ For reasons of data protection, it is not possible to see the followers of other
138138
* Changed: Outbox now precesses the first batch of followers right away to avoid delays in processing new Activities.
139139
* Fixed: The Outbox purging routine no longer is limited to deleting 5 items at a time.
140140
* Fixed an issue where the outbox could not send object types other than `Base_Object` (introduced in 5.0.0).
141+
* Fixed: Ellipses now display correctly in notification emails for Likes and Reposts.
141142

142143
= 5.2.0 =
143144

0 commit comments

Comments
 (0)