From 5f89cb09234bc79aab2be93778609b344239c3da Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 12 Jul 2015 21:37:49 +0200 Subject: [PATCH] The autofollow option is moved from the addons to the core. --- mod/settings.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/mod/settings.php b/mod/settings.php index 612edaaf88..e4ef30a613 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -178,7 +178,8 @@ function settings_post(&$a) { check_form_security_token_redirectOnErr('/settings/connectors', 'settings_connectors'); if(x($_POST, 'general-submit')) { - set_pconfig(local_user(), 'system', 'no_intelligent_shortening', $_POST['no_intelligent_shortening']); + set_pconfig(local_user(), 'system', 'no_intelligent_shortening', intval($_POST['no_intelligent_shortening'])); + set_pconfig(local_user(), 'system', 'ostatus_autofriend', intval($_POST['snautofollow'])); } elseif(x($_POST, 'imap-submit')) { $mail_server = ((x($_POST,'mail_server')) ? $_POST['mail_server'] : ''); @@ -751,6 +752,14 @@ function settings_content(&$a) { $settings_connectors .= ''.t('Normally the system tries to find the best link to add to shortened posts. If this option is enabled then every shortened post will always point to the original friendica post.').''; $settings_connectors .= ''; + $checked = ((get_pconfig(local_user(), 'system', 'ostatus_autofriend')) ? ' checked="checked" ' : ''); + + $settings_connectors .= '
'; + $settings_connectors .= ''; + $settings_connectors .= ''; + $settings_connectors .= ''.t('If you receive a message from an unknown OStatus user, this option decides what to do. If it is checked, a new contact will be created for every unknown user.').''; + $settings_connectors .= '
'; + $settings_connectors .= '
'; $settings_connectors .= '
'; @@ -759,7 +768,7 @@ function settings_content(&$a) { if (is_site_admin()) { $diasp_enabled = sprintf( t('Built-in support for %s connectivity is %s'), t('Diaspora'), ((get_config('system','diaspora_enabled')) ? t('enabled') : t('disabled'))); - $ostat_enabled = sprintf( t('Built-in support for %s connectivity is %s'), t('StatusNet'), ((get_config('system','ostatus_disabled')) ? t('disabled') : t('enabled'))); + $ostat_enabled = sprintf( t('Built-in support for %s connectivity is %s'), t('GNU Social (OStatus)'), ((get_config('system','ostatus_disabled')) ? t('disabled') : t('enabled'))); } else { $diasp_enabled = ""; $ostat_enabled = ""; -- 2.39.5