| @@ -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 | /** |