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
287
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
614ef78f
Commit
614ef78f
authored
33 minutes ago
by
Mark Harding
Browse files
Options
Download
(fix): fixes thumbnails not busting the cache
#1063
parent
fa6047ce
master
No related merge requests found
Pipeline
#100863573
failed with stages
in 2 minutes and 43 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
Core/Media/Assets/Video.php
View file @
614ef78f
...
...
@@ -57,6 +57,9 @@ class Video implements AssetsInterface
$file
->
write
(
$data
);
$file
->
close
();
$this
->
entity
->
last_updated
=
time
();
$this
->
entity
->
save
();
$assets
[
'thumbnail'
]
=
$filename
;
}
...
...
This diff is collapsed.
Core/Media/Image/Manager.php
View file @
614ef78f
...
...
@@ -42,6 +42,7 @@ class Manager
{
$uri
=
null
;
$asset_guid
=
null
;
$lastUpdated
=
null
;
switch
(
get_class
(
$entity
))
{
case
Activity
::
class
:
switch
(
$entity
->
get
(
'custom_type'
))
{
...
...
@@ -51,19 +52,21 @@ class Manager
default
:
$asset_guid
=
$entity
->
get
(
'entity_guid'
);
}
$lastUpdated
=
$entity
->
get
(
'last_updated'
);
break
;
case
Image
::
class
:
$asset_guid
=
$entity
->
getGuid
();
break
;
case
Video
::
class
:
$asset_guid
=
$entity
->
getGuid
();
$lastUpdated
=
$entity
->
get
(
'last_updated'
);
break
;
case
Comment
::
class
:
$asset_guid
=
$entity
->
getAttachments
()[
'attachment_guid'
];
break
;
}
$uri
=
$this
->
config
->
get
(
'cdn_url'
)
.
'fs/v1/thumbnail/'
.
$asset_guid
.
'/'
.
$size
;
$uri
=
$this
->
config
->
get
(
'cdn_url'
)
.
'fs/v1/thumbnail/'
.
$asset_guid
.
'/'
.
$size
.
'/'
.
$lastUpdated
;
if
(
$entity
->
access_id
!==
ACCESS_PUBLIC
)
{
$uri
=
$this
->
signUri
(
$uri
);
...
...
This diff is collapsed.
Please
register
or
sign in
to comment