...
 
Commits (2)
......@@ -222,6 +222,11 @@ class channel implements Interfaces\Api
}
}
if (isset($_POST['nsfw']) && is_array($_POST['nsfw'])) {
$nsfw = array_unique(array_merge($_POST['nsfw'], $owner->getNsfwLock()));
$update['nsfw'] = json_encode($nsfw);
$owner->setNsfw($nsfw);
}
if (isset($_POST['tags']) && $_POST['tags']) {
$update['tags'] = json_encode($_POST['tags']);
......
......@@ -71,8 +71,6 @@ abstract class ElggEntity extends ElggData implements
$this->attributes['tags'] = null;
$this->attributes['nsfw'] = [];
$this->attributes['nsfw_lock'] = [];
$this->attributes['nsfw'] = [];
$this->attributes['nsfw_lock'] = [];
$this->attributes['moderator_guid'] = null;
$this->attributes['time_moderated'] = null;
$this->attributes['allow_comments'] = true;
......