From 70e53fc72128fdf0333cbc2fa3cba7f21fd80c9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Menrath?= Date: Sat, 4 Jan 2025 18:41:33 +0100 Subject: [PATCH] fix follow date of event sources --- includes/activitypub/model/class-event-source.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/activitypub/model/class-event-source.php b/includes/activitypub/model/class-event-source.php index 251a9c7..ccf992f 100644 --- a/includes/activitypub/model/class-event-source.php +++ b/includes/activitypub/model/class-event-source.php @@ -133,8 +133,8 @@ class Event_Source extends Actor { $object->set_id( $post->guid ); $object->set_name( $post->post_title ); $object->set_summary( $post->post_excerpt ); - $object->set_published( gmdate( 'Y-m-d H:i:s', strtotime( $post->post_date_gmt ) ) ); - $object->set_updated( gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified_gmt ) ) ); + $object->set_published( gmdate( 'Y-m-d H:i:s', strtotime( $post->post_date ) ) ); + $object->set_updated( gmdate( 'Y-m-d H:i:s', strtotime( $post->post_modified ) ) ); $thumbnail_id = get_post_thumbnail_id( $post ); if ( $thumbnail_id ) { $object->set_icon(