[TheFreeNetwork] Use config + module settings for initialization and online lookup

The Census event is now replaced with module settings for populating the
protocols array. With this we can shutdown some plugins and still make
them be checked by TFN.

The performance:high config is now added when deciding whether or not to
do online lookup after the offline lookup fails.

default:
- Add default values for the TFN protocol setting

EVENTS:
- Remove Cencus event

TheFreeNetworkModule
- Remove Census event handler, update protocols array to use module's settings
- Use performance:high config when deciding to do online lookup
This commit is contained in:
tenma
2020-04-07 02:36:50 +01:00
committed by Diogo Cordeiro
parent cfba91ea43
commit 01dcaefcfb
3 changed files with 20 additions and 16 deletions

View File

@@ -337,7 +337,9 @@ $default =
'Favorite' => [],
'HTMLPurifierSchemes' => [],
'Share' => [],
'TheFreeNetwork' => [],
'TheFreeNetwork' => [
'protocols' => ['ActivityPub' => 'Activitypub_profile', 'OStatus' => 'Ostatus_profile']
],
],
'default' => [
'AccountManager' => [],