diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-tl.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index b7c14e2..d34371a 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -641,7 +641,10 @@ message is a link which unhides/hides the main body." (let ((preview-url (cdr (assoc 'preview_url media-attachement))) (remote-url - (cdr (assoc 'remote_url media-attachement)))) + (if (cdr (assoc 'remote_url media-attachement)) + (cdr (assoc 'remote_url media-attachement)) + ;; fallback b/c notifications don't have remote_url + (cdr (assoc 'url media-attachement))))) (if mastodon-tl--display-media-p (mastodon-media--get-media-link-rendering preview-url remote-url) ; 2nd arg for shr-browse-url |