Skip to content

Commit f5dbb01

Browse files
committed
added follower endpoint
1 parent ebe2d43 commit f5dbb01

File tree

5 files changed

+16
-7
lines changed

5 files changed

+16
-7
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.0
7-
**Stable tag:** 0.3.1
7+
**Stable tag:** 0.3.2
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.3.2 ###
59+
60+
* added "followers" endpoint
61+
5862
### 0.3.1 ###
5963

6064
* better json encoding

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.3.1
6+
* Version: 0.3.2
77
* Author: Matthias Pfefferle
88
* Author URI: https://notiz.blog/
99
* License: MIT

languages/activitypub.pot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ msgid ""
44
msgstr ""
55
"Project-Id-Version: ActivityPub 0.3.1\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/activitypub\n"
7-
"POT-Creation-Date: 2019-02-02 23:38:20+00:00\n"
7+
"POT-Creation-Date: 2019-02-04 09:59:50+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
@@ -124,15 +124,15 @@ msgstr ""
124124
msgid "Try to follow \"@%s\" in the mastodon/friendi.ca search field."
125125
msgstr ""
126126

127-
#: templates/json-author.php:48
127+
#: templates/json-author.php:49
128128
msgid "Blog"
129129
msgstr ""
130130

131-
#: templates/json-author.php:58 templates/settings-page.php:60
131+
#: templates/json-author.php:59 templates/settings-page.php:60
132132
msgid "Profile"
133133
msgstr ""
134134

135-
#: templates/json-author.php:69
135+
#: templates/json-author.php:70
136136
msgid "Website"
137137
msgstr ""
138138

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.0
7-
Stable tag: 0.3.1
7+
Stable tag: 0.3.2
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.3.2 =
59+
60+
* added "followers" endpoint
61+
5862
= 0.3.1 =
5963

6064
* better json encoding

templates/json-author.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
$json->inbox = get_rest_url( null, "/activitypub/1.0/users/$author_id/inbox" );
3232
$json->outbox = get_rest_url( null, "/activitypub/1.0/users/$author_id/outbox" );
33+
$json->followers = get_rest_url( null, "/activitypub/1.0/users/$author_id/followers" );
3334

3435
$json->manuallyApprovesFollowers = apply_filters( 'activitypub_json_manually_approves_followers', __return_false() ); // phpcs:ignore
3536

0 commit comments

Comments
 (0)