Add Vary header

This commit is contained in:
Alex Kirk 2023-04-21 17:20:48 +02:00
parent 804ef25822
commit 45ae73bb06

View file

@ -39,6 +39,8 @@ class Activitypub {
return $template;
}
header( 'Vary: Accept' );
// check if user can publish posts
if ( \is_author() && ! user_can( \get_the_author_meta( 'ID' ), 'publish_posts' ) ) {
return $template;