Skip to content

Commit

Permalink
finally fixed backlink in excerpt/summary posts
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Feb 20, 2019
1 parent f542c18 commit 94ba166
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
**Tags:** OStatus, fediverse, activitypub, activitystream
**Requires at least:** 4.7
**Tested up to:** 5.1
**Stable tag:** 0.4.2
**Stable tag:** 0.4.3
**Requires PHP:** 5.6
**License:** MIT
**License URI:** http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -55,6 +55,10 @@ To implement:

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

### 0.4.3 ###

* finally fixed backlink in excerpt/summary posts

### 0.4.2 ###

* fixed backlink in excerpt/summary posts (thanks @depone)
Expand Down
2 changes: 1 addition & 1 deletion activitypub.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: ActivityPub
* Plugin URI: https://github.com/pfefferle/wordpress-activitypub/
* Description: The ActivityPub protocol is a decentralized social networking protocol based upon the ActivityStreams 2.0 data format.
* Version: 0.4.2
* Version: 0.4.3
* Author: Matthias Pfefferle
* Author URI: https://notiz.blog/
* License: MIT
Expand Down
6 changes: 4 additions & 2 deletions includes/class-activitypub-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,9 @@ public function get_the_content() {

public function get_the_summary() {
if ( 'Article' === $this->get_object_type() ) {
return $this->get_the_post_excerpt( 400 );
$excerpt = $this->get_the_post_excerpt( 400 );

return html_entity_decode( $excerpt, ENT_QUOTES, 'UTF-8' );
}

return null;
Expand Down Expand Up @@ -244,7 +246,7 @@ public function get_the_post_excerpt( $excerpt_length = 400 ) {
}
}

return html_entity_decode( $excerpt, ENT_QUOTES, 'UTF-8' );
return $excerpt;
}

/**
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Donate link: https://notiz.blog/donate/
Tags: OStatus, fediverse, activitypub, activitystream
Requires at least: 4.7
Tested up to: 5.1
Stable tag: 0.4.2
Stable tag: 0.4.3
Requires PHP: 5.6
License: MIT
License URI: http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -55,6 +55,10 @@ To implement:

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

= 0.4.3 =

* finally fixed backlink in excerpt/summary posts

= 0.4.2 =

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

0 comments on commit 94ba166

Please sign in to comment.