Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
292
Merge Requests
39
CI / CD
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
ace8426f
Commit
ace8426f
authored
59 minutes ago
by
Ben Hayward
Browse files
Options
Download
Minor adustments
parent
3af064a0
fix/blog-media-nsfw-update-1936
1 merge request
!384
[Sprint/QuietQuail](fix): Blog & media edit updated to new nsfw system #1936
Pipeline
#100736732
passed with stages
in 8 minutes and 45 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
1 deletion
+1
-1
Controllers/api/v1/media.php
View file @
ace8426f
...
...
@@ -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'
],
...
...
This diff is collapsed.
Core/Blogs/Legacy/Repository.php
View file @
ace8426f
...
...
@@ -212,6 +212,7 @@ class Repository
if
(
isset
(
$fields
[
'published'
]))
{
$fields
[
'published'
]
=
$fields
[
'published'
]
?
'1'
:
'0'
;
}
if
(
!
$fields
)
{
return
$guid
;
}
...
...
This diff is collapsed.
Please
register
or
sign in
to comment