diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-09-13 10:13:59 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-09-13 10:13:59 +0200 |
commit | 26897d591e96493b2e724a1fe48928e635bad29b (patch) | |
tree | 27a0bb1c5ef7129c9ac30d049d462b54d93a884b /lisp | |
parent | caa5fdc35c50839a12da60f883f94e55af3a1c8b (diff) |
proper-list-p test in --process-link to handle meta fields
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/mastodon-tl.el | 4 |
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) "://" |