Do not set actor and do not override getAttributedTo.
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Failing after 43s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Successful in 1m7s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Successful in 1m14s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Successful in 1m12s

This was introduced to make interoperability with Mobilizon but it should be fixed on their side.
This commit is contained in:
André Menrath 2024-10-02 13:11:57 +02:00
parent 2b93267272
commit 1813a518f3
2 changed files with 0 additions and 23 deletions

View file

@ -31,17 +31,6 @@ abstract class Event extends Post {
*/ */
protected $wp_taxonomy; 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. * Returns the ActivityStreams 2.0 Object-Type for an Event.
* *

View file

@ -117,18 +117,6 @@ final class GatherPress extends Event {
return $attachments; 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. * Determine whether the event is online.
* *