Rename social.disable_cw pconfig to system.disable_cw
This commit is contained in:
parent
41db5f0912
commit
34fd442821
4 changed files with 5 additions and 5 deletions
|
@ -757,7 +757,7 @@ function conversation(App $a, $items, $mode, $update, $preview = false, $order =
|
||||||
|
|
||||||
$profile_name_e = $profile_name;
|
$profile_name_e = $profile_name;
|
||||||
|
|
||||||
if (!empty($item['content-warning']) && PConfig::get(local_user(), 'social', 'disable_cw', false)) {
|
if (!empty($item['content-warning']) && PConfig::get(local_user(), 'system', 'disable_cw', false)) {
|
||||||
$title_e = ucfirst($item['content-warning']);
|
$title_e = ucfirst($item['content-warning']);
|
||||||
} else {
|
} else {
|
||||||
$title_e = $item['title'];
|
$title_e = $item['title'];
|
||||||
|
|
|
@ -1271,7 +1271,7 @@ function prepare_body(array &$item, $attach = false, $is_preview = false)
|
||||||
// Compile eventual content filter reasons
|
// Compile eventual content filter reasons
|
||||||
$filter_reasons = [];
|
$filter_reasons = [];
|
||||||
if (!$is_preview && !($item['self'] && local_user() == $item['uid'])) {
|
if (!$is_preview && !($item['self'] && local_user() == $item['uid'])) {
|
||||||
if (!empty($item['content-warning']) && (!local_user() || !PConfig::get(local_user(), 'social', 'disable_cw', false))) {
|
if (!empty($item['content-warning']) && (!local_user() || !PConfig::get(local_user(), 'system', 'disable_cw', false))) {
|
||||||
$filter_reasons[] = L10n::t('Content warning: %s', $item['content-warning']);
|
$filter_reasons[] = L10n::t('Content warning: %s', $item['content-warning']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -212,7 +212,7 @@ function settings_post(App $a)
|
||||||
check_form_security_token_redirectOnErr('/settings/connectors', 'settings_connectors');
|
check_form_security_token_redirectOnErr('/settings/connectors', 'settings_connectors');
|
||||||
|
|
||||||
if (x($_POST, 'general-submit')) {
|
if (x($_POST, 'general-submit')) {
|
||||||
PConfig::set(local_user(), 'social', 'disable_cw', intval($_POST['disable_cw']));
|
PConfig::set(local_user(), 'system', 'disable_cw', intval($_POST['disable_cw']));
|
||||||
PConfig::set(local_user(), 'system', 'no_intelligent_shortening', intval($_POST['no_intelligent_shortening']));
|
PConfig::set(local_user(), 'system', 'no_intelligent_shortening', intval($_POST['no_intelligent_shortening']));
|
||||||
PConfig::set(local_user(), 'system', 'ostatus_autofriend', intval($_POST['snautofollow']));
|
PConfig::set(local_user(), 'system', 'ostatus_autofriend', intval($_POST['snautofollow']));
|
||||||
PConfig::set(local_user(), 'ostatus', 'default_group', $_POST['group-selection']);
|
PConfig::set(local_user(), 'ostatus', 'default_group', $_POST['group-selection']);
|
||||||
|
@ -787,7 +787,7 @@ function settings_content(App $a)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($a->argc > 1) && ($a->argv[1] === 'connectors')) {
|
if (($a->argc > 1) && ($a->argv[1] === 'connectors')) {
|
||||||
$disable_cw = intval(PConfig::get(local_user(), 'social', 'disable_cw'));
|
$disable_cw = intval(PConfig::get(local_user(), 'system', 'disable_cw'));
|
||||||
$no_intelligent_shortening = intval(PConfig::get(local_user(), 'system', 'no_intelligent_shortening'));
|
$no_intelligent_shortening = intval(PConfig::get(local_user(), 'system', 'no_intelligent_shortening'));
|
||||||
$ostatus_autofriend = intval(PConfig::get(local_user(), 'system', 'ostatus_autofriend'));
|
$ostatus_autofriend = intval(PConfig::get(local_user(), 'system', 'ostatus_autofriend'));
|
||||||
$default_group = PConfig::get(local_user(), 'ostatus', 'default_group');
|
$default_group = PConfig::get(local_user(), 'ostatus', 'default_group');
|
||||||
|
|
|
@ -317,7 +317,7 @@ class Post extends BaseObject
|
||||||
$text_e = strip_tags($body);
|
$text_e = strip_tags($body);
|
||||||
$name_e = $profile_name;
|
$name_e = $profile_name;
|
||||||
|
|
||||||
if (!empty($item['content-warning']) && PConfig::get(local_user(), 'social', 'disable_cw', false)) {
|
if (!empty($item['content-warning']) && PConfig::get(local_user(), 'system', 'disable_cw', false)) {
|
||||||
$title_e = ucfirst($item['content-warning']);
|
$title_e = ucfirst($item['content-warning']);
|
||||||
} else {
|
} else {
|
||||||
$title_e = $item['title'];
|
$title_e = $item['title'];
|
||||||
|
|
Loading…
Reference in a new issue