still refactoring
This commit is contained in:
parent
5db2e38719
commit
4d07955c75
2 changed files with 6 additions and 6 deletions
|
@ -47,12 +47,6 @@ function init() {
|
||||||
require_once dirname( __FILE__ ) . '/includes/rest/class-nodeinfo.php';
|
require_once dirname( __FILE__ ) . '/includes/rest/class-nodeinfo.php';
|
||||||
\Activitypub\Rest\NodeInfo::init();
|
\Activitypub\Rest\NodeInfo::init();
|
||||||
|
|
||||||
add_post_type_support( 'post', 'activitypub' );
|
|
||||||
add_post_type_support( 'page', 'activitypub' );
|
|
||||||
|
|
||||||
$post_types = get_post_types_by_support( 'activitypub' );
|
|
||||||
add_action( 'transition_post_status', array( '\Activitypub\Activitypub', 'schedule_post_activity' ), 10, 3 );
|
|
||||||
|
|
||||||
require_once dirname( __FILE__ ) . '/includes/class-admin.php';
|
require_once dirname( __FILE__ ) . '/includes/class-admin.php';
|
||||||
\Activitypub\Admin::init();
|
\Activitypub\Admin::init();
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,12 @@ class Activitypub {
|
||||||
add_filter( 'query_vars', array( '\Activitypub\Activitypub', 'add_query_vars' ) );
|
add_filter( 'query_vars', array( '\Activitypub\Activitypub', 'add_query_vars' ) );
|
||||||
add_action( 'init', array( '\Activitypub\Activitypub', 'add_rewrite_endpoint' ) );
|
add_action( 'init', array( '\Activitypub\Activitypub', 'add_rewrite_endpoint' ) );
|
||||||
add_filter( 'pre_get_avatar_data', array( '\Activitypub\Activitypub', 'pre_get_avatar_data' ), 11, 2 );
|
add_filter( 'pre_get_avatar_data', array( '\Activitypub\Activitypub', 'pre_get_avatar_data' ), 11, 2 );
|
||||||
|
|
||||||
|
add_post_type_support( 'post', 'activitypub' );
|
||||||
|
add_post_type_support( 'page', 'activitypub' );
|
||||||
|
|
||||||
|
$post_types = get_post_types_by_support( 'activitypub' );
|
||||||
|
add_action( 'transition_post_status', array( '\Activitypub\Activitypub', 'schedule_post_activity' ), 10, 3 );
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Return a AS2 JSON version of an author, post or page
|
* Return a AS2 JSON version of an author, post or page
|
||||||
|
|
Loading…
Reference in a new issue