|
|
|
@ -27,12 +27,13 @@ class PostsFile extends Model |
|
|
|
if ($fileValue['type'] == 2) { |
|
|
|
$is_video = 1; |
|
|
|
$videoFile = $fileValue; |
|
|
|
} |
|
|
|
} else { |
|
|
|
$privacyFile = $fileValue; |
|
|
|
} |
|
|
|
} |
|
|
|
if ($is_video) { |
|
|
|
$newFiles = $videoFile; |
|
|
|
$newFiles['privacy'] = $privacyFile['src']; |
|
|
|
$newFiles['privacy'] = $privacyFile['src'] ?? '/static/common/img/video.png'; |
|
|
|
$files = [$newFiles]; |
|
|
|
} |
|
|
|
return $files; |
|
|
|
|