diff --git a/resources/celerity/map.php b/resources/celerity/map.php --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -292,6 +292,7 @@ 'rsrc/favicons/mstile-310x150.png' => '4a49d3ee', 'rsrc/favicons/mstile-310x310.png' => 'a52ab264', 'rsrc/favicons/mstile-70x70.png' => '5edce7b8', + 'rsrc/favicons/opengraph-144x144.png' => '648fb0fc', 'rsrc/image/BFCFDA.png' => 'd5ec91f4', 'rsrc/image/actions/edit.png' => '2fc41442', 'rsrc/image/avatar.png' => '17d346a4', diff --git a/src/view/page/AphrontPageView.php b/src/view/page/AphrontPageView.php --- a/src/view/page/AphrontPageView.php +++ b/src/view/page/AphrontPageView.php @@ -59,9 +59,15 @@ ), array($body, $tail)); + if (PhabricatorEnv::getEnvConfig('policy.allow-public')) { + $html_open_tag = hsprintf(''); + } else { + $html_open_tag = hsprintf(''); + } + $response = hsprintf( ''. - ''. + '%s'. ''. ''. '%s'. @@ -69,6 +75,7 @@ ''. '%s'. '', + $html_open_tag, $title, $head, $body); diff --git a/src/view/page/PhabricatorStandardPageView.php b/src/view/page/PhabricatorStandardPageView.php --- a/src/view/page/PhabricatorStandardPageView.php +++ b/src/view/page/PhabricatorStandardPageView.php @@ -936,7 +936,7 @@ ), array( 'og:image', - PhabricatorCustomLogoConfigType::getLogoURI($viewer), + celerity_get_resource_uri('rsrc/favicons/opengraph-144x144.png'), ), ); diff --git a/webroot/rsrc/favicons/opengraph-144x144.png b/webroot/rsrc/favicons/opengraph-144x144.png new file mode 100644 index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 GIT binary patch literal 0 Hc$@