Skip to content
Next
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
292
Merge Requests
40
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
d58012e8
Commit
d58012e8
authored
14 minutes ago
by
Ben Hayward
Browse files
Options
Download
Fixed bug with SFW media
parent
51de081b
fix/blog-media-nsfw-update-1936
1 merge request
!384
[Sprint/QuietQuail](fix): Blog & media edit updated to new nsfw system #1936
Pipeline
#93609835
failed with stages
in 4 minutes and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Entities/Image.php
View file @
d58012e8
...
...
@@ -214,13 +214,18 @@ class Image extends File
*/
public
function
export
()
{
error_log
(
var_export
(
$this
->
nsfw
,
true
));
error_log
(
var_export
(
$this
->
getFlag
(
'nsfw'
),
true
));
error_log
(
"^^^^^^^^^^^^^^^^^"
);
$export
=
parent
::
export
();
$export
[
'thumbnail_src'
]
=
$this
->
getIconUrl
(
'xlarge'
);
$export
[
'thumbnail'
]
=
$export
[
'thumbnail_src'
];
$export
[
'thumbs:up:count'
]
=
Helpers\Counters
::
get
(
$this
->
guid
,
'thumbs:up'
);
$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
[
'nsfw'
]
=
$this
->
nsfw
?:
$this
->
getFlag
(
'nsfw'
)
;
$export
[
'nsfw'
]
=
$this
->
nsfw
?:
[]
;
$export
[
'rating'
]
=
$this
->
getRating
();
$export
[
'width'
]
=
$this
->
width
?:
0
;
$export
[
'height'
]
=
$this
->
height
?:
0
;
...
...
This diff is collapsed.
Please
register
or
sign in
to comment