planiverse

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

commit 585ef3d52a8e271b975bc492f58af281f47928f8
parent afbfdd7b2daa283858e88ae2bbe8959294302575
Author: St John Karp <contact@stjo.hn>
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>