Commit ace8426f authored by Ben Hayward's avatar Ben Hayward

Minor adustments

1 merge request!384[Sprint/QuietQuail](fix): Blog & media edit updated to new nsfw system #1936
Pipeline #100736732 running with stages
......@@ -263,7 +263,6 @@ class media implements Interfaces\Api, Interfaces\ApiIgnorePam
$entity = Core\Media\Factory::build($clientType);
$container_guid = isset($data['container_guid']) && is_numeric($data['container_guid']) ? $data['container_guid'] : null;
$entity->patch([
'title' => isset($data['name']) ? $data['name'] : '',
'mature' => isset($data['mature']) && !!$data['mature'],
......
......@@ -212,6 +212,7 @@ class Repository
if (isset($fields['published'])) {
$fields['published'] = $fields['published'] ? '1' : '0';
}
if (!$fields) {
return $guid;
}
......
Please register or to comment