updated plugin ActivityPub
version 2.2.0
This commit is contained in:
@ -15,19 +15,17 @@ class Application_User extends Blog_User {
|
||||
*/
|
||||
protected $_id = Users::APPLICATION_USER_ID; // phpcs:ignore PSR2.Classes.PropertyDeclaration.Underscore
|
||||
|
||||
/**
|
||||
* The User-Type
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $type = 'Application';
|
||||
public function get_type() {
|
||||
return 'Application';
|
||||
}
|
||||
|
||||
/**
|
||||
* If the User is discoverable.
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
protected $discoverable = false;
|
||||
public function get_discoverable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public function get_manually_approves_followers() {
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the User-Url.
|
||||
@ -52,7 +50,7 @@ class Application_User extends Blog_User {
|
||||
}
|
||||
|
||||
public function get_preferred_username() {
|
||||
return $this::get_name();
|
||||
return $this->get_name();
|
||||
}
|
||||
|
||||
public function get_followers() {
|
||||
@ -78,8 +76,4 @@ class Application_User extends Blog_User {
|
||||
public function get_indexable() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public function get_type() {
|
||||
return $this->type;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user