From 1813a518f308e1570b21bf1894cf7518ed3d5bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= <andre.menrath@posteo.de> Date: Wed, 2 Oct 2024 13:11:57 +0200 Subject: [PATCH] Do not set actor and do not override getAttributedTo. This was introduced to make interoperability with Mobilizon but it should be fixed on their side. --- includes/activitypub/transformer/class-event.php | 11 ----------- .../activitypub/transformer/class-gatherpress.php | 12 ------------ 2 files changed, 23 deletions(-) diff --git a/includes/activitypub/transformer/class-event.php b/includes/activitypub/transformer/class-event.php index 48f5522..a364c7e 100644 --- a/includes/activitypub/transformer/class-event.php +++ b/includes/activitypub/transformer/class-event.php @@ -31,17 +31,6 @@ abstract class Event extends Post { */ protected $wp_taxonomy; - /** - * Returns the User-URL of the Author of the Post. - * - * If `single_user` mode is enabled, the URL of the Blog-User is returned. - * - * @return string The User-URL. - */ - protected function get_actor(): ?string { - return $this->get_attributed_to(); - } - /** * Returns the ActivityStreams 2.0 Object-Type for an Event. * diff --git a/includes/activitypub/transformer/class-gatherpress.php b/includes/activitypub/transformer/class-gatherpress.php index 4e64072..8a05985 100644 --- a/includes/activitypub/transformer/class-gatherpress.php +++ b/includes/activitypub/transformer/class-gatherpress.php @@ -117,18 +117,6 @@ final class GatherPress extends Event { return $attachments; } - /** - * Returns the User-URL of the Author of the Post. - * - * If `single_user` mode is enabled, the URL of the Blog-User is returned. - * - * @return string The User-URL. - */ - protected function get_attributed_to(): string { - $user = new Blog(); // todo is this correct? feels not right. - return $user->get_url(); - } - /** * Determine whether the event is online. *