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'] ); } }