diff options
author | mousebot <mousebot@riseup.net> | 2022-02-11 13:42:27 +0100 |
---|---|---|
committer | mousebot <mousebot@riseup.net> | 2022-02-11 13:42:27 +0100 |
commit | 95894a80f93bfd6c2401be54bde82379ccf423bd (patch) | |
tree | 478d8909163bba296d6c53ab7ebdee8cc4396096 /lisp | |
parent | 4e4f9f3aa2f3f08ebfa5d2ae3dbab0b13813fd8f (diff) |
replace if call with or call in tl--media
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-tl.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index f7ca297..6e30853 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -713,10 +713,9 @@ message is a link which unhides/hides the main body." (let ((preview-url (alist-get 'preview_url media-attachement)) (remote-url - (if (alist-get 'remote_url media-attachement) - (alist-get 'remote_url media-attachement) - ;; fallback b/c notifications don't have remote_url - (alist-get 'url media-attachement))) + (or (alist-get 'remote_url media-attachement) + ;; fallback b/c notifications don't have remote_url + (alist-get 'url media-attachement))) (type (alist-get 'type media-attachement))) (if mastodon-tl--display-media-p (mastodon-media--get-media-link-rendering |