mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update MediaService, remove hls_manifest attribute for MastoAPI entities
This commit is contained in:
parent
f0ba2dfc69
commit
6cf4363c50
1 changed files with 3 additions and 2 deletions
|
@ -18,7 +18,7 @@ class MediaService
|
||||||
|
|
||||||
public static function get($statusId)
|
public static function get($statusId)
|
||||||
{
|
{
|
||||||
return Cache::remember(self::CACHE_KEY.$statusId, 86400, function() use($statusId) {
|
return Cache::remember(self::CACHE_KEY.$statusId, 21600, function() use($statusId) {
|
||||||
$media = Media::whereStatusId($statusId)->orderBy('order')->get();
|
$media = Media::whereStatusId($statusId)->orderBy('order')->get();
|
||||||
if(!$media) {
|
if(!$media) {
|
||||||
return [];
|
return [];
|
||||||
|
@ -46,7 +46,8 @@ class MediaService
|
||||||
$media['orientation'],
|
$media['orientation'],
|
||||||
$media['filter_name'],
|
$media['filter_name'],
|
||||||
$media['filter_class'],
|
$media['filter_class'],
|
||||||
$media['mime']
|
$media['mime'],
|
||||||
|
$media['hls_manifest']
|
||||||
);
|
);
|
||||||
|
|
||||||
$media['type'] = $mime ? strtolower($mime[0]) : 'unknown';
|
$media['type'] = $mime ? strtolower($mime[0]) : 'unknown';
|
||||||
|
|
Loading…
Reference in a new issue