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
291
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
5a510bff
Commit
5a510bff
authored
17 minutes ago
by
Ben Hayward
Browse files
Options
Download
Update for feedback
parent
572a567e
fix/blog-media-nsfw-update-1936
1 merge request
!384
[Sprint/QuietQuail](fix): Blog & media edit updated to new nsfw system #1936
Pipeline
#100701650
passed with stages
in 6 minutes and 54 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Entities/Image.php
View file @
5a510bff
...
...
@@ -190,7 +190,6 @@ class Image extends File
'cinemr_guid'
,
'license'
,
'mature'
,
'nsfw'
,
'boost_rejection_reason'
,
'rating'
,
'width'
,
...
...
@@ -223,7 +222,6 @@ class Image extends File
$export
[
'thumbs:down:count'
]
=
Helpers\Counters
::
get
(
$this
->
guid
,
'thumbs:down'
);
$export
[
'description'
]
=
$this
->
description
;
//videos need to be able to export html.. sanitize soon!
$export
[
'mature'
]
=
$this
->
mature
?:
$this
->
getFlag
(
'mature'
);
$export
[
'nsfw'
]
=
$this
->
nsfw
?:
[];
$export
[
'rating'
]
=
$this
->
getRating
();
$export
[
'width'
]
=
$this
->
width
?:
0
;
$export
[
'height'
]
=
$this
->
height
?:
0
;
...
...
@@ -301,6 +299,8 @@ class Image extends File
$data
[
$field
]
=
(
int
)
$data
[
$field
];
}
elseif
(
$field
==
'mature'
)
{
$this
->
setFlag
(
'mature'
,
!!
$data
[
'mature'
]);
}
elseif
(
$field
==
'nsfw'
)
{
$this
->
setNsfw
(
$data
[
'nsfw'
]);
}
$this
->
$field
=
$data
[
$field
];
...
...
This diff is collapsed.
Please
register
or
sign in
to comment