]> git.mxchange.org Git - friendica.git/commitdiff
Move default setting to the configuration file
authorMichael <heluecht@pirati.ca>
Wed, 16 Sep 2020 06:08:30 +0000 (06:08 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 16 Sep 2020 06:08:30 +0000 (06:08 +0000)
src/Module/Admin/Site.php
static/settings.config.php

index ee7840565db619e81419a26a071d3827a053d64e..2087486768d4d9b2574036f3cf61264872fbfb84 100644 (file)
@@ -698,7 +698,7 @@ class Site extends BaseAdmin
                        '$worker_frontend'        => ['worker_frontend', DI::l10n()->t('Enable frontend worker'), DI::config()->get('system', 'frontend_worker'), DI::l10n()->t('When enabled the Worker process is triggered when backend access is performed (e.g. messages being delivered). On smaller sites you might want to call %s/worker on a regular basis via an external cron job. You should only enable this option if you cannot utilize cron/scheduled jobs on your server.', DI::baseUrl()->get())],
 
                        '$relay_subscribe'        => ['relay_subscribe', DI::l10n()->t('Subscribe to relay'), DI::config()->get('system', 'relay_subscribe'), DI::l10n()->t('Enables the receiving of public posts from the relay. They will be included in the search, subscribed tags and on the global community page.')],
-                       '$relay_server'           => ['relay_server', DI::l10n()->t('Relay server'), DI::config()->get('system', 'relay_server', 'https://social-relay.isurf.ca'), DI::l10n()->t('Address of the relay server where public posts should be send to. For example %s', 'https://social-relay.isurf.ca')],
+                       '$relay_server'           => ['relay_server', DI::l10n()->t('Relay server'), DI::config()->get('system', 'relay_server'), DI::l10n()->t('Address of the relay server where public posts should be send to. For example %s', 'https://social-relay.isurf.ca')],
                        '$relay_directly'         => ['relay_directly', DI::l10n()->t('Direct relay transfer'), DI::config()->get('system', 'relay_directly'), DI::l10n()->t('Enables the direct transfer to other servers without using the relay servers')],
                        '$relay_scope'            => ['relay_scope', DI::l10n()->t('Relay scope'), DI::config()->get('system', 'relay_scope'), DI::l10n()->t('Can be "all" or "tags". "all" means that every public post should be received. "tags" means that only posts with selected tags should be received.'), ['' => DI::l10n()->t('Disabled'), 'all' => DI::l10n()->t('all'), 'tags' => DI::l10n()->t('tags')]],
                        '$relay_server_tags'      => ['relay_server_tags', DI::l10n()->t('Server tags'), DI::config()->get('system', 'relay_server_tags'), DI::l10n()->t('Comma separated list of tags for the "tags" subscription.')],
index 9dfd963b0bf2f8792b882f49a65a6705b0320bcb..29f57f4afe1fd4b412d9229ef83107d17deb6293 100644 (file)
@@ -122,6 +122,10 @@ return [
                // Maximum system load before delivery and poll processes are deferred.
                'maxloadavg' => 20,
 
+               // relay_server (String)
+               // Address of the relay server where public posts should be send to.
+               'relay_server' => 'https://social-relay.isurf.ca',
+
                // rino_encrypt (Integer)
                // Server-to-server private message encryption (RINO).
                // Encryption will only be provided if this setting is set to a non zero value on both servers.