added follower endpoint

This commit is contained in:
Matthias Pfefferle 2019-02-04 13:30:18 +01:00
parent ebe2d434c6
commit f5dbb01273
5 changed files with 16 additions and 7 deletions

View file

@ -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

View file

@ -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

View file

@ -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 ""

View file

@ -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

View file

@ -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