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