From f677d1a7d4944d834b428fbf72f5bb96dc3c473d Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 17 Jan 2022 11:03:30 +0100 Subject: [PATCH] fix #135 --- includes/model/class-activity.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/model/class-activity.php b/includes/model/class-activity.php index 1b5931e..b6cc251 100644 --- a/includes/model/class-activity.php +++ b/includes/model/class-activity.php @@ -55,8 +55,10 @@ class Activity { $this->actor = $object['attributedTo']; } + $type = \strtolower( $this->type ); + if ( isset( $object['id'] ) ) { - $this->id = $object['id']; + $this->id = add_query_arg( 'activity', $type, $object['id'] ); } }