mirror of
https://github.com/friendica/friendica
synced 2025-04-28 21:04:22 +02:00
Add the nsfw removal behind a config switch
This commit is contained in:
parent
858fd127a1
commit
6352aa112b
2 changed files with 5 additions and 3 deletions
|
@ -679,9 +679,10 @@ class OStatus
|
|||
foreach ($category->attributes as $attributes) {
|
||||
if ($attributes->name == "term") {
|
||||
$term = $attributes->textContent;
|
||||
// don't add nsfw with content warning
|
||||
// Background: "nsfw" is set automatically by Mastodon and superfluous
|
||||
if (!$content_warning || ($term != 'nsfw')) {
|
||||
// don't add nsfw with content warning if enabled.
|
||||
// Background: "nsfw" is set automatically by Mastodon
|
||||
if (!Config::get('system', 'remove_nsfw_with_cw', false) ||
|
||||
!$content_warning || ($term != 'nsfw')) {
|
||||
if (strlen($item["tag"])) {
|
||||
$item["tag"] .= ',';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue