aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-09-13 10:13:59 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-09-13 10:13:59 +0200
commit26897d591e96493b2e724a1fe48928e635bad29b (patch)
tree27a0bb1c5ef7129c9ac30d049d462b54d93a884b /lisp
parentcaa5fdc35c50839a12da60f883f94e55af3a1c8b (diff)
proper-list-p test in --process-link to handle meta fields
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-tl.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 8e75705..1df8bae 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -647,7 +647,9 @@ START and END are the boundaries of the link in the toot."
keymap
(help-echo (get-text-property start 'help-echo))
extra-properties
- (toot-url (mastodon-tl--field 'url toot))
+ ;; handle calling this on non-toots, e.g. for profiles:
+ (toot-url (when (proper-list-p toot)
+ (mastodon-tl--field 'url toot)))
(toot-url (when toot-url (url-generic-parse-url toot-url)))
(toot-instance-url (if toot-url
(concat (url-type toot-url) "://"