Skip to content

Commit

Permalink
added follower endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Feb 4, 2019
1 parent ebe2d43 commit f5dbb01
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 7 deletions.
6 changes: 5 additions & 1 deletion README.md
Expand Up @@ -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
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.3.2 ###

* added "followers" endpoint

### 0.3.1 ###

* better json encoding
Expand Down
2 changes: 1 addition & 1 deletion activitypub.php
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.3.1
* Version: 0.3.2
* Author: Matthias Pfefferle
* Author URI: https://notiz.blog/
* License: MIT
Expand Down
8 changes: 4 additions & 4 deletions languages/activitypub.pot
Expand Up @@ -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"
Expand Down Expand Up @@ -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 ""

Expand Down
6 changes: 5 additions & 1 deletion readme.txt
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.0
Stable tag: 0.3.1
Stable tag: 0.3.2
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.3.2 =

* added "followers" endpoint

= 0.3.1 =

* better json encoding
Expand Down
1 change: 1 addition & 0 deletions templates/json-author.php
Expand Up @@ -30,6 +30,7 @@

$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

Expand Down

0 comments on commit f5dbb01

Please sign in to comment.