Skip to content

Commit 94ba166

Browse files
committed
finally fixed backlink in excerpt/summary posts
1 parent f542c18 commit 94ba166

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
**Tags:** OStatus, fediverse, activitypub, activitystream
55
**Requires at least:** 4.7
66
**Tested up to:** 5.1
7-
**Stable tag:** 0.4.2
7+
**Stable tag:** 0.4.3
88
**Requires PHP:** 5.6
99
**License:** MIT
1010
**License URI:** http://opensource.org/licenses/MIT
@@ -55,6 +55,10 @@ To implement:
5555

5656
Project maintained on github at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub).
5757

58+
### 0.4.3 ###
59+
60+
* finally fixed backlink in excerpt/summary posts
61+
5862
### 0.4.2 ###
5963

6064
* fixed backlink in excerpt/summary posts (thanks @depone)

activitypub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: ActivityPub
44
* Plugin URI: https://github.com/pfefferle/wordpress-activitypub/
55
* Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.
6-
* Version: 0.4.2
6+
* Version: 0.4.3
77
* Author: Matthias Pfefferle
88
* Author URI: https://notiz.blog/
99
* License: MIT

includes/class-activitypub-post.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ public function get_the_content() {
204204

205205
public function get_the_summary() {
206206
if ( 'Article' === $this->get_object_type() ) {
207-
return $this->get_the_post_excerpt( 400 );
207+
$excerpt = $this->get_the_post_excerpt( 400 );
208+
209+
return html_entity_decode( $excerpt, ENT_QUOTES, 'UTF-8' );
208210
}
209211

210212
return null;
@@ -244,7 +246,7 @@ public function get_the_post_excerpt( $excerpt_length = 400 ) {
244246
}
245247
}
246248

247-
return html_entity_decode( $excerpt, ENT_QUOTES, 'UTF-8' );
249+
return $excerpt;
248250
}
249251

250252
/**

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Donate link: https://notiz.blog/donate/
44
Tags: OStatus, fediverse, activitypub, activitystream
55
Requires at least: 4.7
66
Tested up to: 5.1
7-
Stable tag: 0.4.2
7+
Stable tag: 0.4.3
88
Requires PHP: 5.6
99
License: MIT
1010
License URI: http://opensource.org/licenses/MIT
@@ -55,6 +55,10 @@ To implement:
5555

5656
Project maintained on github at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub).
5757

58+
= 0.4.3 =
59+
60+
* finally fixed backlink in excerpt/summary posts
61+
5862
= 0.4.2 =
5963

6064
* fixed backlink in excerpt/summary posts (thanks @depone)

0 commit comments

Comments
 (0)