PluginProbe
ActivityPub / 2.6.0
ActivityPub v2.6.0
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 +7 -1 2.1.1 → 2.6.0 View file →
@@ -161,9 +161,15 @@
161 161 $this->set( 'actor', $object->get_attributed_to() );
162 162 }
163 163
164 164 if ( $object->get_id() && ! $this->get_id() ) {
165 - $this->set( 'id', $object->get_id() . '#activity' );
165 + $id = strtok( $object->get_id(), '#' );
166 + if ( $object->get_updated() ) {
167 + $updated = $object->get_updated();
168 + } else {
169 + $updated = $object->get_published();
170 + }
171 + $this->set( 'id', $id . '#activity-' . strtolower( $this->get_type() ) . '-' . $updated );
166 172 }
167 173 }
168 174
169 175 /**