diff --git a/README.md b/README.md index 16999e6..066b6d4 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.0 -**Stable tag:** 0.3.1 +**Stable tag:** 0.3.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.3.2 ### + +* added "followers" endpoint + ### 0.3.1 ### * better json encoding diff --git a/activitypub.php b/activitypub.php index 8e7665c..58fee8b 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.3.1 + * Version: 0.3.2 * Author: Matthias Pfefferle * Author URI: https://notiz.blog/ * License: MIT diff --git a/languages/activitypub.pot b/languages/activitypub.pot index 29f01e7..c30e656 100644 --- a/languages/activitypub.pot +++ b/languages/activitypub.pot @@ -4,7 +4,7 @@ msgid "" msgstr "" "Project-Id-Version: ActivityPub 0.3.1\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/activitypub\n" -"POT-Creation-Date: 2019-02-02 23:38:20+00:00\n" +"POT-Creation-Date: 2019-02-04 09:59:50+00:00\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -124,15 +124,15 @@ msgstr "" msgid "Try to follow \"@%s\" in the mastodon/friendi.ca search field." msgstr "" -#: templates/json-author.php:48 +#: templates/json-author.php:49 msgid "Blog" msgstr "" -#: templates/json-author.php:58 templates/settings-page.php:60 +#: templates/json-author.php:59 templates/settings-page.php:60 msgid "Profile" msgstr "" -#: templates/json-author.php:69 +#: templates/json-author.php:70 msgid "Website" msgstr "" diff --git a/readme.txt b/readme.txt index fd941ff..423ec0a 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.0 -Stable tag: 0.3.1 +Stable tag: 0.3.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.3.2 = + +* added "followers" endpoint + = 0.3.1 = * better json encoding diff --git a/templates/json-author.php b/templates/json-author.php index fcd6fc6..b924b01 100644 --- a/templates/json-author.php +++ b/templates/json-author.php @@ -30,6 +30,7 @@ if ( has_header_image() ) { $json->inbox = get_rest_url( null, "/activitypub/1.0/users/$author_id/inbox" ); $json->outbox = get_rest_url( null, "/activitypub/1.0/users/$author_id/outbox" ); +$json->followers = get_rest_url( null, "/activitypub/1.0/users/$author_id/followers" ); $json->manuallyApprovesFollowers = apply_filters( 'activitypub_json_manually_approves_followers', __return_false() ); // phpcs:ignore