From 873395796311f60e3baad96ca695b7560d96f3ed 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 931367a..fc16c4f 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'] ); } }