Fix video filepath

This commit is contained in:
Ben Goldsworthy 2022-11-28 22:19:24 +00:00
parent 9a80b94e18
commit ea35ca38c1

View file

@ -9,7 +9,7 @@
@if(preg_match("/\[\[([^\]]+)\]\]/", $checkin->note, $filepath))
@if(preg_match("/\.webm/", $filepath[1]))
<video controls>
<source src="/video/{{ $filepath[1] }}" type="video/webm">
<source src="/videos/{{ $filepath[1] }}" type="video/webm">
<p>Your browser doesn't support HTML video. Here is a <a href="/{{ $filepath[1] }}">link to the video</a> instead.</p>
</video>
@elseif(preg_match("/\.ogg/", $filepath[1]))