Skip to content

Commit

Permalink
Align asterisks in block comments
Browse files Browse the repository at this point in the history
  • Loading branch information
obenland committed Jan 20, 2025
1 parent 798b3e0 commit 086cb19
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions includes/class-query.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,20 +235,20 @@ public function is_activitypub_request() {
}

/*
* The other (more common) option to make an ActivityPub request
* is to send an Accept header.
*/
* The other (more common) option to make an ActivityPub request
* is to send an Accept header.
*/
if ( isset( $_SERVER['HTTP_ACCEPT'] ) ) {
$accept = \sanitize_text_field( \wp_unslash( $_SERVER['HTTP_ACCEPT'] ) );

/*
* $accept can be a single value, or a comma separated list of values.
* We want to support both scenarios,
* and return true when the header includes at least one of the following:
* - application/activity+json
* - application/ld+json
* - application/json
*/
* $accept can be a single value, or a comma separated list of values.
* We want to support both scenarios,
* and return true when the header includes at least one of the following:
* - application/activity+json
* - application/ld+json
* - application/json
*/
if ( \preg_match( '/(application\/(ld\+json|activity\+json|json))/i', $accept ) ) {
$this->is_activitypub_request = true;

Expand Down

0 comments on commit 086cb19

Please sign in to comment.