remove comments
@mattwiebe maybe you can add them as issues
This commit is contained in:
parent
6a0fc43a05
commit
d7d6ebbc1f
2 changed files with 0 additions and 2 deletions
|
@ -144,7 +144,6 @@ class Outbox {
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'type' => 'integer',
|
'type' => 'integer',
|
||||||
'validate_callback' => function( $param, $request, $key ) {
|
'validate_callback' => function( $param, $request, $key ) {
|
||||||
// this is probably ok on multisite still?
|
|
||||||
return user_can( $param, 'publish_posts' );
|
return user_can( $param, 'publish_posts' );
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
|
@ -62,7 +62,6 @@ class Webfinger {
|
||||||
}
|
}
|
||||||
|
|
||||||
$user = \get_user_by( 'login', \esc_sql( $resource_identifier ) );
|
$user = \get_user_by( 'login', \esc_sql( $resource_identifier ) );
|
||||||
/// YIKES NOPE NOPE NOT ON DOTCOM!
|
|
||||||
|
|
||||||
if ( ! $user || ! \user_can( $user, 'publish_posts' ) ) {
|
if ( ! $user || ! \user_can( $user, 'publish_posts' ) ) {
|
||||||
return new WP_Error( 'activitypub_user_not_found', \__( 'User not found', 'activitypub' ), array( 'status' => 404 ) );
|
return new WP_Error( 'activitypub_user_not_found', \__( 'User not found', 'activitypub' ), array( 'status' => 404 ) );
|
||||||
|
|
Loading…
Reference in a new issue