From 95894a80f93bfd6c2401be54bde82379ccf423bd Mon Sep 17 00:00:00 2001 From: mousebot Date: Fri, 11 Feb 2022 13:42:27 +0100 Subject: replace if call with or call in tl--media --- lisp/mastodon-tl.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lisp/mastodon-tl.el') 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 -- cgit v1.2.3