2019-02-24 12:07:41 +01:00
|
|
|
<?php
|
|
|
|
namespace Activitypub\Rest;
|
|
|
|
|
2019-02-24 13:01:43 +01:00
|
|
|
/**
|
|
|
|
* ActivityPub OStatus REST-Class
|
|
|
|
*
|
|
|
|
* @author Matthias Pfefferle
|
|
|
|
*
|
|
|
|
* @see https://www.w3.org/community/ostatus/
|
|
|
|
*/
|
2019-02-24 12:07:41 +01:00
|
|
|
class Ostatus {
|
|
|
|
/**
|
|
|
|
* Register routes
|
|
|
|
*/
|
|
|
|
public static function register_routes() {
|
2019-09-27 10:12:59 +02:00
|
|
|
\register_rest_route(
|
2019-02-24 12:07:41 +01:00
|
|
|
'activitypub/1.0', '/ostatus/remote-follow', array(
|
|
|
|
array(
|
|
|
|
'methods' => \WP_REST_Server::READABLE,
|
2019-02-24 13:01:43 +01:00
|
|
|
'callback' => array( '\Activitypub\Rest\Ostatus', 'get' ),
|
|
|
|
// 'args' => self::request_parameters(),
|
2019-02-24 12:07:41 +01:00
|
|
|
),
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
2019-02-24 13:01:43 +01:00
|
|
|
|
|
|
|
public static function get() {
|
|
|
|
// @todo implement
|
|
|
|
}
|
2019-02-24 12:07:41 +01:00
|
|
|
}
|