@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.

Port a few various options.

Summary:
- remarkup.enable-embedded-youtube
- controller.oauth-registration
- aphront.default-application-configuration-class
- cache.enable-deflate

Test Plan: Saw the new options in the web interface.

Reviewers: epriestley, chad, btrahan

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T2255

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

authored by

Ricky Elrod and committed by
epriestley
0c6e5f86 d67b42dc

+40
+13
src/applications/config/option/PhabricatorDeveloperConfigOptions.php
··· 140 140 "Minify static resources by removing whitespace and comments. You ". 141 141 "should enable this in production, but disable it in ". 142 142 "development.")), 143 + $this->newOption('cache.enable-deflate', 'bool', true) 144 + ->setBoolOptions( 145 + array( 146 + pht("Enable deflate compression"), 147 + pht("Disable deflate compression"), 148 + )) 149 + ->setSummary( 150 + pht("Toggle gzdeflate()-based compression for some caches.")) 151 + ->setDescription( 152 + pht( 153 + "Set this to false to disable the use of gzdeflate()-based ". 154 + "compression in some caches. This may give you less performant ". 155 + "(but more debuggable) caching.")), 143 156 ); 144 157 } 145 158 }
+13
src/applications/config/option/PhabricatorExtendingPhabricatorConfigOptions.php
··· 37 37 "Path to custom celerity resource map relative to ". 38 38 "'phabricator/src'. See also `scripts/celerity_mapper.php`.")) 39 39 ->addExample('local/my_celerity_map.php', pht('Valid Setting')), 40 + $this->newOption( 41 + 'aphront.default-application-configuration-class', 42 + 'class', 43 + 'AphrontDefaultApplicationConfiguration') 44 + ->setBaseClass('AphrontApplicationConfiguration') 45 + // TODO: This could probably use some better documentation. 46 + ->setDescription(pht("Application configuration class.")), 47 + $this->newOption( 48 + 'controller.oauth-registration', 49 + 'class', 50 + 'PhabricatorOAuthDefaultRegistrationController') 51 + ->setBaseClass('PhabricatorOAuthRegistrationController') 52 + ->setDescription(pht("OAuth registration controller.")), 40 53 ); 41 54 } 42 55
+14
src/applications/config/option/PhabricatorSecurityConfigOptions.php
··· 133 133 "to something else and rebuild the Celerity map to break user ". 134 134 "caches. Unless you are doing Celerity development, it is ". 135 135 "exceptionally unlikely that you need to modify this.")), 136 + $this->newOption('remarkup.enable-embedded-youtube', 'bool', false) 137 + ->setBoolOptions( 138 + array( 139 + pht("Embed YouTube videos"), 140 + pht("Don't embed YouTube videos"), 141 + )) 142 + ->setSummary( 143 + pht("Determines whether or not YouTube videos get embedded.")) 144 + ->setDescription( 145 + pht( 146 + "If you enable this, linked YouTube videos will be embeded ". 147 + "inline. This has mild security implications (you'll leak ". 148 + "referrers to YouTube) and is pretty silly (but sort of ". 149 + "awesome).")), 136 150 ); 137 151 } 138 152