From f542c18eabc2a60915d145d6869f3561d4c13900 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Wed, 20 Feb 2019 19:47:37 +0100 Subject: [PATCH] fixed backlink in excerpt/summary posts (thanks @depone) --- README.md | 6 +++++- activitypub.php | 4 ++-- languages/activitypub.pot | 4 ++-- readme.txt | 6 +++++- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4e479a8..5cb7e5c 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ **Tags:** OStatus, fediverse, activitypub, activitystream **Requires at least:** 4.7 **Tested up to:** 5.1 -**Stable tag:** 0.4.1 +**Stable tag:** 0.4.2 **Requires PHP:** 5.6 **License:** MIT **License URI:** http://opensource.org/licenses/MIT @@ -55,6 +55,10 @@ To implement: Project maintained on github at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub). +### 0.4.2 ### + +* fixed backlink in excerpt/summary posts (thanks @depone) + ### 0.4.1 ### * finally fixed contact list diff --git a/activitypub.php b/activitypub.php index 44a397a..fb3eda4 100644 --- a/activitypub.php +++ b/activitypub.php @@ -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.1 + * Version: 0.4.2 * Author: Matthias Pfefferle * Author URI: https://notiz.blog/ * License: MIT @@ -24,7 +24,7 @@ function activitypub_init() { require_once dirname( __FILE__ ) . '/includes/functions.php'; require_once dirname( __FILE__ ) . '/includes/class-activitypub-post.php'; - add_filter( 'activitypub_the_excerpt', array( 'Activitypub_Post', 'add_backlink' ), 10, 2 ); + add_filter( 'activitypub_the_summary', array( 'Activitypub_Post', 'add_backlink' ), 10, 2 ); add_filter( 'activitypub_the_content', array( 'Activitypub_Post', 'add_backlink' ), 10, 2 ); require_once dirname( __FILE__ ) . '/includes/class-activitypub.php'; diff --git a/languages/activitypub.pot b/languages/activitypub.pot index d1c7ae0..38accb4 100644 --- a/languages/activitypub.pot +++ b/languages/activitypub.pot @@ -2,9 +2,9 @@ # This file is distributed under the MIT. msgid "" msgstr "" -"Project-Id-Version: ActivityPub 0.4.1\n" +"Project-Id-Version: ActivityPub 0.4.2\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/activitypub\n" -"POT-Creation-Date: 2019-02-19 13:29:42+00:00\n" +"POT-Creation-Date: 2019-02-20 18:45:51+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" diff --git a/readme.txt b/readme.txt index 878477f..b5103a0 100644 --- a/readme.txt +++ b/readme.txt @@ -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.1 +Stable tag: 0.4.2 Requires PHP: 5.6 License: MIT License URI: http://opensource.org/licenses/MIT @@ -55,6 +55,10 @@ To implement: Project maintained on github at [pfefferle/wordpress-activitypub](https://github.com/pfefferle/wordpress-activitypub). += 0.4.2 = + +* fixed backlink in excerpt/summary posts (thanks @depone) + = 0.4.1 = * finally fixed contact list