PluginProbe
ActivityPub / 3.2.2
ActivityPub v3.2.2
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/activity/class-activity.php +11 -1 2.1.13.2.2 View file →
@@ -160,10 +160,20 @@
160 160 if ( $object->get_attributed_to() && ! $this->get_actor() ) {
161 161 $this->set( 'actor', $object->get_attributed_to() );
162 162 }
163 163
164 + if ( $object->get_in_reply_to() ) {
165 + $this->set( 'in_reply_to', $object->get_in_reply_to() );
166 + }
167 +
164 168 if ( $object->get_id() && ! $this->get_id() ) {
165 - $this->set( 'id', $object->get_id() . '#activity' );
169 + $id = strtok( $object->get_id(), '#' );
170 + if ( $object->get_updated() ) {
171 + $updated = $object->get_updated();
172 + } else {
173 + $updated = $object->get_published();
174 + }
175 + $this->set( 'id', $id . '#activity-' . strtolower( $this->get_type() ) . '-' . $updated );
166 176 }
167 177 }
168 178
169 179 /**