@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Include OpenGraph prefix material in <html> tag if OpenGraph is enabled

Summary: Ref T13018. Discourse doesn't seem to be picking this up yet (see <https://discourse.phabricator-community.org/t/opengraph-test-topic/762>) so maybe it really needs this meta-meta-XML stuff?

Test Plan: Will push.

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13018

Differential Revision: https://secure.phabricator.com/D18781

+10 -2
+1
resources/celerity/map.php
··· 292 292 'rsrc/favicons/mstile-310x150.png' => '4a49d3ee', 293 293 'rsrc/favicons/mstile-310x310.png' => 'a52ab264', 294 294 'rsrc/favicons/mstile-70x70.png' => '5edce7b8', 295 + 'rsrc/favicons/opengraph-144x144.png' => '648fb0fc', 295 296 'rsrc/image/BFCFDA.png' => 'd5ec91f4', 296 297 'rsrc/image/actions/edit.png' => '2fc41442', 297 298 'rsrc/image/avatar.png' => '17d346a4',
+8 -1
src/view/page/AphrontPageView.php
··· 59 59 ), 60 60 array($body, $tail)); 61 61 62 + if (PhabricatorEnv::getEnvConfig('policy.allow-public')) { 63 + $html_open_tag = hsprintf('<html prefix="og: http://ogp.me/ns#">'); 64 + } else { 65 + $html_open_tag = hsprintf('<html>'); 66 + } 67 + 62 68 $response = hsprintf( 63 69 '<!DOCTYPE html>'. 64 - '<html>'. 70 + '%s'. 65 71 '<head>'. 66 72 '<meta charset="UTF-8" />'. 67 73 '<title>%s</title>'. ··· 69 75 '</head>'. 70 76 '%s'. 71 77 '</html>', 78 + $html_open_tag, 72 79 $title, 73 80 $head, 74 81 $body);
+1 -1
src/view/page/PhabricatorStandardPageView.php
··· 936 936 ), 937 937 array( 938 938 'og:image', 939 - PhabricatorCustomLogoConfigType::getLogoURI($viewer), 939 + celerity_get_resource_uri('rsrc/favicons/opengraph-144x144.png'), 940 940 ), 941 941 ); 942 942
webroot/rsrc/favicons/opengraph-144x144.png

This is a binary file and will not be displayed.