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

at upstream/main 36 lines 920 B view raw
1<?php 2 3final class PhabricatorDisqusAuthProvider 4 extends PhabricatorOAuth2AuthProvider { 5 6 public function getProviderName() { 7 return pht('Disqus'); 8 } 9 10 protected function getProviderConfigurationHelp() { 11 $login_uri = PhabricatorEnv::getURI($this->getLoginURI()); 12 13 return pht( 14 "To configure Disqus OAuth, create a new application here:". 15 "\n\n". 16 "https://disqus.com/api/applications/". 17 "\n\n". 18 "Create an application, then adjust these settings:". 19 "\n\n". 20 " - **Callback URL:** Set this to `%s`". 21 "\n\n". 22 "After creating an application, copy the **Public Key** and ". 23 "**Secret Key** to the fields above (the **Public Key** goes in ". 24 "**OAuth App ID**).", 25 $login_uri); 26 } 27 28 protected function newOAuthAdapter() { 29 return new PhutilDisqusAuthAdapter(); 30 } 31 32 protected function getLoginIcon() { 33 return 'Disqus'; 34 } 35 36}