Support showing video attachments

Added support for showing video and gifv attachment types.
This commit is contained in:
St John Karp 2018-08-25 10:36:46 -07:00
parent efcdf76c3e
commit b76a68cd7c
1 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,15 @@
/>
</a>
</figure>
@elseif ($attachment['type'] === 'video' || $attachment['type'] === 'gifv')
<video controls>
<source src="{{
$attachment['remote_url'] === null
? $attachment['url']
: $attachment['remote_url']
}}"
/>
</video>
@endif
@endforeach
@else