| @@ -43,9 +43,9 @@ | ||
| 43 | 43 | ), |
| 44 | 44 | array( |
| 45 | 45 | 'methods' => \WP_REST_Server::READABLE, |
| 46 | 46 | 'callback' => array( $this, 'get_items' ), |
| 47 | - 'permission_callback' => array( $this, 'verify_signature' ), | |
| 47 | + 'permission_callback' => array( 'Activitypub\Rest\Server', 'verify_signature' ), | |
| 48 | 48 | 'args' => array( |
| 49 | 49 | 'page' => array( |
| 50 | 50 | 'description' => 'Current page of the collection.', |
| 51 | 51 | 'type' => 'integer', |
| @@ -114,9 +114,9 @@ | ||
| 114 | 114 | // Ensure the context is the first element in the response. |
| 115 | 115 | $response = array( '@context' => Base_Object::JSON_LD_CONTEXT ) + $response; |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | - if ( $this->show_social_graph( $request ) ) { | |
| 118 | + if ( Actors::show_social_graph( $user_id ) ) { | |
| 119 | 119 | $response['orderedItems'] = \array_filter( |
| 120 | 120 | \array_map( |
| 121 | 121 | static function ( $item ) use ( $context ) { |
| 122 | 122 | if ( 'full' === $context ) { |