| @@ -206,17 +206,10 @@ | ||
| 206 | 206 | $queried_object = \get_post( $post_id ); |
| 207 | 207 | } |
| 208 | 208 | } |
| 209 | 209 | |
| 210 | - /* | |
| 211 | - * Check Term by ID, unless the request names an author. Other plugins set `term_id` on | |
| 212 | - * requests that are not about a term at all, Polylang puts its language term on every | |
| 213 | - * request, and a term here would answer `?author=0` with an OrderedCollection where | |
| 214 | - * Mastodon expected the blog actor. Leaving the object unset lets the author resolution | |
| 215 | - * below, and the blog-actor handling in get_activitypub_object_id(), run as usual. An | |
| 216 | - * absent `author` reads as an empty string, and `?author=0` as the string "0". | |
| 217 | - */ | |
| 218 | - if ( ! $queried_object && '' === \get_query_var( 'author', '' ) ) { | |
| 210 | + // Check Term by ID. | |
| 211 | + if ( ! $queried_object ) { | |
| 219 | 212 | $term_id = \get_query_var( 'term_id' ); |
| 220 | 213 | if ( $term_id ) { |
| 221 | 214 | $queried_object = \get_term( $term_id ); |
| 222 | 215 | } |