aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-media.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/mastodon-media.el')
-rw-r--r--lisp/mastodon-media.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/mastodon-media.el b/lisp/mastodon-media.el
index f5d67ca..0a4c3de 100644
--- a/lisp/mastodon-media.el
+++ b/lisp/mastodon-media.el
@@ -201,9 +201,10 @@ found."
"Checks to make sure that the missing string has
not been returned."
- (let ((missing "/files/small/missing.png"))
- (and link
- (not (equal link missing)))))
+ (and link
+ (> (length link) 8)
+ (or (string= "http://" (substring link 0 7))
+ (string= "https://" (substring link 0 8)))))
(defun mastodon-media--inline-images ()
"Find all `Media_Links:' in the buffer replacing them with the referenced image."