Add Vary header
This commit is contained in:
parent
804ef25822
commit
45ae73bb06
1 changed files with 2 additions and 0 deletions
|
@ -39,6 +39,8 @@ class Activitypub {
|
||||||
return $template;
|
return $template;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header( 'Vary: Accept' );
|
||||||
|
|
||||||
// check if user can publish posts
|
// check if user can publish posts
|
||||||
if ( \is_author() && ! user_can( \get_the_author_meta( 'ID' ), 'publish_posts' ) ) {
|
if ( \is_author() && ! user_can( \get_the_author_meta( 'ID' ), 'publish_posts' ) ) {
|
||||||
return $template;
|
return $template;
|
||||||
|
|
Loading…
Reference in a new issue