a40bd8408a
* remove unused code * check if `$data['object']` is a sting * do not index application user * this fixes GoToSocial errors * do not cache errors * re-added the fragment See https://github.com/superseriousbusiness/gotosocial/issues/2280 * Fix coding standards * do not verify signature on head request
76 lines
1.2 KiB
PHP
76 lines
1.2 KiB
PHP
<?php
|
|
namespace Activitypub\Model;
|
|
|
|
use WP_Query;
|
|
use Activitypub\Signature;
|
|
use Activitypub\Collection\Users;
|
|
|
|
use function Activitypub\get_rest_url_by_path;
|
|
|
|
class Application_User extends Blog_User {
|
|
/**
|
|
* The User-ID
|
|
*
|
|
* @var int
|
|
*/
|
|
protected $_id = Users::APPLICATION_USER_ID; // phpcs:ignore PSR2.Classes.PropertyDeclaration.Underscore
|
|
|
|
/**
|
|
* The User-Type
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $type = 'Application';
|
|
|
|
/**
|
|
* If the User is discoverable.
|
|
*
|
|
* @var boolean
|
|
*/
|
|
protected $discoverable = false;
|
|
|
|
/**
|
|
* Get the User-Url.
|
|
*
|
|
* @return string The User-Url.
|
|
*/
|
|
public function get_url() {
|
|
return get_rest_url_by_path( 'application' );
|
|
}
|
|
|
|
public function get_name() {
|
|
return 'application';
|
|
}
|
|
|
|
public function get_preferred_username() {
|
|
return $this::get_name();
|
|
}
|
|
|
|
public function get_followers() {
|
|
return null;
|
|
}
|
|
|
|
public function get_following() {
|
|
return null;
|
|
}
|
|
|
|
public function get_attachment() {
|
|
return null;
|
|
}
|
|
|
|
public function get_featured_tags() {
|
|
return null;
|
|
}
|
|
|
|
public function get_featured() {
|
|
return null;
|
|
}
|
|
|
|
public function get_moderators() {
|
|
return null;
|
|
}
|
|
|
|
public function get_indexable() {
|
|
return false;
|
|
}
|
|
}
|