planiverse

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

commit 15081e340528c8157bd0e05488d70d8bf1c40d78
parent 660ea37e2b39ed59c3df9211a40cf36307fa359b
Author: St John Karp <contact@stjo.hn>
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