cleanup unused code

This commit is contained in:
André Menrath 2024-09-02 14:39:37 +02:00
parent 04dad65bfa
commit 871959c8c9

View file

@ -170,38 +170,4 @@ class VS_Event_List extends Event_Transformer {
$summary = "📍 {$address}\n📅 {$start_time_string}\n\n{$excerpt}";
return $summary;
}
// /**
// * Transform the WordPress Object into an ActivityPub Object.
// *
// * @return Activitypub\Activity\Event
// */
// public function to_object() {
// $this->ap_object = new Event();
// $this->ap_object = parent::to_object();
// $this
// ->set_content()
// ->set_replies()
// ->set_content_map()
// ->set_attributed_to()
// ->set_published()
// ->set_start_time()
// ->set_end_time()
// ->set_type()
// ->set_category()
// ->set_attachment()
// ->set_comments_enabled( true )
// ->set_external_participation_url( $this->get_url() )
// ->set_status( 'CONFIRMED' )
// ->set_name( get_the_title( $this->wp_object->ID ) )
// ->set_is_online( false )
// ->set_in_language( $this->get_locale() )
// ->set_actor()
// ->set_to( array( 'https://www.w3.org/ns/activitystreams#Public' ) )
// ->set_location()
// ->set_id();
// return $this->ap_object;
// }
}