2020-04-07 13:03:04 +00:00
|
|
|
<?php
|
|
|
|
namespace Activitypub\Rest;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ActivityPub OStatus REST-Class
|
|
|
|
*
|
|
|
|
* @author Matthias Pfefferle
|
|
|
|
*
|
|
|
|
* @see https://www.w3.org/community/ostatus/
|
|
|
|
*/
|
|
|
|
class Ostatus {
|
|
|
|
/**
|
|
|
|
* Register routes
|
|
|
|
*/
|
|
|
|
public static function register_routes() {
|
|
|
|
\register_rest_route(
|
2022-08-19 16:15:51 +00:00
|
|
|
'activitypub/1.0',
|
|
|
|
'/ostatus/remote-follow',
|
|
|
|
array(
|
2020-04-07 13:03:04 +00:00
|
|
|
array(
|
2020-12-25 19:23:08 +00:00
|
|
|
'methods' => \WP_REST_Server::READABLE,
|
|
|
|
'callback' => array( '\Activitypub\Rest\Ostatus', 'get' ),
|
2020-04-07 13:03:04 +00:00
|
|
|
// 'args' => self::request_parameters(),
|
2020-12-25 19:23:08 +00:00
|
|
|
'permission_callback' => '__return_true',
|
2020-04-07 13:03:04 +00:00
|
|
|
),
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function get() {
|
|
|
|
// @todo implement
|
|
|
|
}
|
|
|
|
}
|