From 4d7c0594cdadf294e56e739c22423b356192d61e Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 23 Oct 2023 16:16:24 +0200 Subject: [PATCH] remove featured tags endpoint --- includes/model/class-application-user.php | 4 ---- includes/model/class-user.php | 18 ------------------ 2 files changed, 22 deletions(-) diff --git a/includes/model/class-application-user.php b/includes/model/class-application-user.php index ae8b641..cf4d9cc 100644 --- a/includes/model/class-application-user.php +++ b/includes/model/class-application-user.php @@ -58,10 +58,6 @@ class Application_User extends Blog_User { return null; } - public function get_featured_tags() { - return null; - } - public function get_featured() { return null; } diff --git a/includes/model/class-user.php b/includes/model/class-user.php index f62772d..95c83d7 100644 --- a/includes/model/class-user.php +++ b/includes/model/class-user.php @@ -18,15 +18,6 @@ class User extends Actor { */ protected $_id; // phpcs:ignore PSR2.Classes.PropertyDeclaration.Underscore - /** - * The Featured-Tags. - * - * @see https://docs.joinmastodon.org/spec/activitypub/#featuredTags - * - * @var string - */ - protected $featured_tags; - /** * The Featured-Posts. * @@ -235,15 +226,6 @@ class User extends Actor { return get_rest_url_by_path( sprintf( 'users/%d/collections/featured', $this->get__id() ) ); } - /** - * Returns the Featured-Tags-API-Endpoint. - * - * @return string The Featured-Tags-Endpoint. - */ - public function get_featured_tags() { - return get_rest_url_by_path( sprintf( 'users/%d/collections/tags', $this->get__id() ) ); - } - /** * Extend the User-Output with Attachments. *