todo: show application actor table in admin menu for development
Some checks failed
PHP_CodeSniffer / phpcs (push) Has been cancelled
Unit Testing / phpunit (5.6, 6.2) (push) Has been cancelled
Unit Testing / phpunit (7.0) (push) Has been cancelled
Unit Testing / phpunit (7.2) (push) Has been cancelled
Unit Testing / phpunit (7.3) (push) Has been cancelled
Unit Testing / phpunit (7.4) (push) Has been cancelled
Unit Testing / phpunit (8.0) (push) Has been cancelled
Unit Testing / phpunit (8.1) (push) Has been cancelled
Unit Testing / phpunit (8.2) (push) Has been cancelled
Unit Testing / phpunit (latest) (push) Has been cancelled

This commit is contained in:
André Menrath 2023-12-24 11:54:19 +01:00
parent a3a918c54c
commit 33b28b1635
2 changed files with 7 additions and 7 deletions

View file

@ -389,7 +389,7 @@ class Activitypub {
* @return void
*/
private static function register_post_types() {
\register_post_type(
register_post_type(
Followers::POST_TYPE,
array(
'labels' => array(
@ -406,7 +406,7 @@ class Activitypub {
)
);
\register_post_meta(
register_post_meta(
Followers::POST_TYPE,
'activitypub_inbox',
array(
@ -416,7 +416,7 @@ class Activitypub {
)
);
\register_post_meta(
register_post_meta(
Followers::POST_TYPE,
'activitypub_errors',
array(
@ -432,7 +432,7 @@ class Activitypub {
)
);
\register_post_meta(
register_post_meta(
Followers::POST_TYPE,
'activitypub_user_id',
array(
@ -444,7 +444,7 @@ class Activitypub {
)
);
\register_post_meta(
register_post_meta(
Followers::POST_TYPE,
'activitypub_actor_json',
array(
@ -456,7 +456,7 @@ class Activitypub {
)
);
\do_action( 'activitypub_after_register_post_type' );
do_action( 'activitypub_after_register_post_type' );
}
/**

View file

@ -16,7 +16,7 @@ class Followers extends WP_List_Table {
public function __construct() {
if ( get_current_screen()->id === 'settings_page_activitypub' ) {
$this->user_id = Users::BLOG_USER_ID;
$this->user_id = Users::APPLICATION_USER_ID;
} else {
$this->user_id = \get_current_user_id();
}