| @@ -337,12 +337,8 @@ | ||
| 337 | 337 | if ( \get_option( 'activitypub_content_negotiation', '1' ) ) { |
| 338 | 338 | $return = true; |
| 339 | 339 | } |
| 340 | 340 | |
| 341 | - if ( \is_author() && \get_user_option( 'activitypub_use_permalink_as_id', \get_queried_object_id() ) ) { | |
| 342 | - $return = true; | |
| 343 | - } | |
| 344 | - | |
| 345 | 341 | /** |
| 346 | 342 | * Filters whether content negotiation should be forced. |
| 347 | 343 | * |
| 348 | 344 | * @param bool $return Whether content negotiation should be forced. |
| @@ -400,15 +396,9 @@ | ||
| 400 | 396 | if ( ! $meta ) { |
| 401 | 397 | return false; |
| 402 | 398 | } |
| 403 | 399 | |
| 404 | - $post = $this->get_queried_object(); | |
| 405 | - | |
| 406 | - // Ensure the meta belongs to the queried post to prevent arbitrary meta disclosure. | |
| 407 | - if ( (int) $meta->post_id !== $post->ID ) { | |
| 408 | - return false; | |
| 409 | - } | |
| 410 | - | |
| 400 | + $post = $this->get_queried_object(); | |
| 411 | 401 | $user_uri = get_user_id( $post->post_author ); |
| 412 | 402 | |
| 413 | 403 | if ( ! $user_uri ) { |
| 414 | 404 | return false; |