From fbba8c283c44c8ae0d81eae987dc949c54d9cff3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Tue, 24 Dec 2024 17:25:42 +0100 Subject: [PATCH] don't pass null to sanitize_url --- includes/activitypub/transmogrifier/class-vs-event-list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/activitypub/transmogrifier/class-vs-event-list.php b/includes/activitypub/transmogrifier/class-vs-event-list.php index e34c2e1..01fb36a 100644 --- a/includes/activitypub/transmogrifier/class-vs-event-list.php +++ b/includes/activitypub/transmogrifier/class-vs-event-list.php @@ -112,7 +112,7 @@ class VS_Event_List extends Base { 'guid' => \sanitize_url( $this->activitypub_event->get_id() ), 'meta_input' => array( 'event-start-date' => \strtotime( $this->activitypub_event->get_start_time() ), - 'event-link' => \sanitize_url( $this->activitypub_event->get_url() ), + 'event-link' => \sanitize_url( $this->activitypub_event->get_url() ?? $this->activitypub_event->get_id() ), 'event-link-label' => \sanitize_text_field( __( 'Original Website', 'event-bridge-for-activitypub' ) ), 'event-link-target' => 'yes', // Open in new window. 'event-link-title' => 'no', // Whether to redirect event title to original source.