@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 recaptime-dev/main 34 lines 1.5 kB view raw
1<?php 2 3$map = array( 4 'PhabricatorAuthProviderOAuthAmazon' => 'PhabricatorAmazonAuthProvider', 5 'PhabricatorAuthProviderOAuthAsana' => 'PhabricatorAsanaAuthProvider', 6 'PhabricatorAuthProviderOAuth1Bitbucket' 7 => 'PhabricatorBitbucketAuthProvider', 8 'PhabricatorAuthProviderOAuthDisqus' => 'PhabricatorDisqusAuthProvider', 9 'PhabricatorAuthProviderOAuthFacebook' => 'PhabricatorFacebookAuthProvider', 10 'PhabricatorAuthProviderOAuthGitHub' => 'PhabricatorGitHubAuthProvider', 11 'PhabricatorAuthProviderOAuthGoogle' => 'PhabricatorGoogleAuthProvider', 12 'PhabricatorAuthProviderOAuth1JIRA' => 'PhabricatorJIRAAuthProvider', 13 'PhabricatorAuthProviderLDAP' => 'PhabricatorLDAPAuthProvider', 14 'PhabricatorAuthProviderPassword' => 'PhabricatorPasswordAuthProvider', 15 'PhabricatorAuthProviderPersona' => 'PhabricatorPersonaAuthProvider', 16 'PhabricatorAuthProviderOAuthTwitch' => 'PhabricatorTwitchAuthProvider', 17 'PhabricatorAuthProviderOAuth1Twitter' => 'PhabricatorTwitterAuthProvider', 18 'PhabricatorAuthProviderOAuthWordPress' => 'PhabricatorWordPressAuthProvider', 19); 20 21echo pht('Migrating auth providers...')."\n"; 22$table = new PhabricatorAuthProviderConfig(); 23$conn_w = $table->establishConnection('w'); 24 25foreach (new LiskMigrationIterator($table) as $provider) { 26 $provider_class = $provider->getProviderClass(); 27 28 queryfx( 29 $conn_w, 30 'UPDATE %T SET providerClass = %s WHERE id = %d', 31 $provider->getTableName(), 32 idx($map, $provider_class, $provider_class), 33 $provider->getID()); 34}