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