planiverse

A minimalist, no-JS front-end for Mastodon.
git clone https://git.stjo.hn/planiverse
Log | Files | Refs | README | LICENSE

commit b76a68cd7ca0076e17007b470edae0ce28cf8290
parent efcdf76c3eb266f54c93a64d9242c2f6a4fba856
Author: St John Karp <stjohn@fuzzjunket.com>
Date:   Sat, 25 Aug 2018 10:36:46 -0700

Support showing video attachments

Added support for showing video and gifv attachment types.

Diffstat:
Mresources/views/status_content.blade.php | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/resources/views/status_content.blade.php b/resources/views/status_content.blade.php @@ -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