add WIP OStatus class

This commit is contained in:
Matthias Pfefferle 2019-02-24 13:01:43 +01:00
parent a6d97f8ba7
commit 50d068b51a

View file

@ -1,6 +1,13 @@
<?php
namespace Activitypub\Rest;
/**
* ActivityPub OStatus REST-Class
*
* @author Matthias Pfefferle
*
* @see https://www.w3.org/community/ostatus/
*/
class Ostatus {
/**
* Register routes
@ -10,10 +17,14 @@ class Ostatus {
'activitypub/1.0', '/ostatus/remote-follow', array(
array(
'methods' => \WP_REST_Server::READABLE,
'callback' => array( '\Activitypub\Rest\Ostatus', 'webfinger' ),
'args' => self::request_parameters(),
'callback' => array( '\Activitypub\Rest\Ostatus', 'get' ),
// 'args' => self::request_parameters(),
),
)
);
}
public static function get() {
// @todo implement
}
}