updated plugin ActivityPub version 2.2.0

This commit is contained in:
2024-03-28 09:39:50 +00:00
committed by Gitium
parent fd53533f59
commit 00c5db12cc
50 changed files with 1726 additions and 374 deletions

View File

@ -2,7 +2,8 @@
namespace Activitypub\Model;
use WP_Query;
use Activitypub\Signature;
use WP_Error;
use Activitypub\Collection\Users;
use function Activitypub\is_single_user;
@ -17,19 +18,13 @@ class Blog_User extends User {
*/
protected $_id = Users::BLOG_USER_ID; // phpcs:ignore PSR2.Classes.PropertyDeclaration.Underscore
/**
* The User-Type
*
* @var string
*/
protected $type = null;
public function get_manually_approves_followers() {
return false;
}
/**
* Is Account discoverable?
*
* @var boolean
*/
protected $discoverable = true;
public function get_discoverable() {
return true;
}
public static function from_wp_user( $user_id ) {
if ( is_user_disabled( $user_id ) ) {