mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 04:45:16 +02:00
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;
|
||||
|
||||
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']);
|
||||
} else {
|
||||
$title_e = $item['title'];
|
||||
|
|
|
@ -1271,7 +1271,7 @@ function prepare_body(array &$item, $attach = false, $is_preview = false)
|
|||
// Compile eventual content filter reasons
|
||||
$filter_reasons = [];
|
||||
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']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue