aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-03 17:43:13 -0800
committerfriendica <info@friendica.com>2015-03-03 17:43:13 -0800
commitdf90677f900a1a6ed496628545a8e109700e168b (patch)
tree0d333f9cad70dadd49b2c10dc50b0da8ba3fdf12 /mod
parent6d92ac7e58cc3fc65b5452c962c1af12d82a1b13 (diff)
downloadvolse-hubzilla-df90677f900a1a6ed496628545a8e109700e168b.tar.gz
volse-hubzilla-df90677f900a1a6ed496628545a8e109700e168b.tar.bz2
volse-hubzilla-df90677f900a1a6ed496628545a8e109700e168b.zip
add the tag hijacking preference to Diaspora settings
Diffstat (limited to 'mod')
-rw-r--r--mod/settings.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 3205797bb..71ca38d91 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -117,6 +117,7 @@ function settings_post(&$a) {
if($_POST['dspr-submit']) {
set_pconfig(local_channel(),'system','diaspora_public_comments',intval($_POST['dspr_pubcomment']));
+ set_pconfig(local_channel(),'system','prevent_tag_hijacking',intval($_POST['dspr_hijack']));
info( t('Diaspora Policy Settings updated.') . EOL);
}
@@ -666,6 +667,9 @@ function settings_content(&$a) {
$pubcomments = get_pconfig(local_channel(),'system','diaspora_public_comments');
if($pubcomments === false)
$pubcomments = 1;
+ $hijacking = get_pconfig(local_channel(),'system','prevent_tag_hijacking');
+
+
}
call_hooks('feature_settings', $settings_addons);
@@ -673,11 +677,13 @@ function settings_content(&$a) {
$tpl = get_markup_template("settings_addons.tpl");
$o .= replace_macros($tpl, array(
'$form_security_token' => get_form_security_token("settings_featured"),
- '$title' => t('Feature Settings'),
+ '$title' => t('Feature/Addon Settings'),
'$diaspora_enabled' => $diaspora_enabled,
'$pubcomments' => $pubcomments,
'$dsprtitle' => t('Diaspora Policy Settings'),
'$dsprhelp' => t('Allow any Diaspora member to comment on your public posts.'),
+ '$dsprhijack' => t('Prevent hashtags from being redirected to other sites'),
+ '$hijacking' => $hijacking,
'$dsprsubmit' => t('Submit Diaspora Policy Settings'),
'$settings_addons' => $settings_addons
));