aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/mastodon-media.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mastodon-media.el b/lisp/mastodon-media.el
index f79b1fa..383e062 100644
--- a/lisp/mastodon-media.el
+++ b/lisp/mastodon-media.el
@@ -328,7 +328,9 @@ TYPE is the attachment's type field on the server."
'mastodon-tab-stop 'image ; for do-link-action-at-point
'image-url full-remote-url ; for shr-browse-image
'keymap mastodon-tl--shr-image-map-replacement
- 'help-echo (if (string= type "image")
+ 'help-echo (if (or (string= type "image")
+ (string= type nil)
+ (string= type "unknown")) ;handle borked images
help-echo
(concat help-echo "\nC-RET: play " type " with mpv")))
" ")))