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

@ -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;
}
}