planiverse

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

commit 52a9cf68cd0736672434e608aead094a92799eeb
parent 457da06f22b6cb522306e22a3815146f516e2a16
Author: St John Karp <stjohn@fuzzjunket.com>
Date:   Sun,  7 Oct 2018 17:58:57 -0700

Fall back to URL for image alt text

If an attacment image has no description, use the URL for the
alt text instead. Having no description was causing image links
not to appear in Lynx.

Diffstat:
Mresources/views/status_content.blade.php | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/resources/views/status_content.blade.php b/resources/views/status_content.blade.php @@ -12,7 +12,11 @@ > <img src="{{ $attachment['preview_url'] }}" - alt="{{ $attachment['description'] }}" + alt="{{ + $attachment['description'] === null + ? $attachment['url'] + : $attachment['description'] + }}" /> </a> </figure>