wordpress-activitypub-event.../includes/activitypub/transformer/class-event.php

30 lines
646 B
PHP
Raw Normal View History

2024-06-30 14:17:59 +02:00
<?php
/**
* Replace the default ActivityPub Transformer
*
* @package activity-event-transformers
* @license AGPL-3.0-or-later
*/
namespace Activitypub_Event_Extensions\Activitypub\Transformer;
use Activitypub\Model\Blog;
2024-06-30 14:17:59 +02:00
use Activitypub\Transformer\Post;
/**
* Base transformer for WordPress event post types to ActivityPub events.
*/
class Event extends Post {
/**
* 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() {
$blog = new Blog();
return $blog->get_id();
}
2024-06-30 14:17:59 +02:00
}