diff options
author | marty hiatt <martianhiatus@riseup.net> | 2023-12-08 11:13:49 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2023-12-08 11:13:49 +0100 |
commit | 589868c98d23ebce4157c3d654e2b5766b414dab (patch) | |
tree | fe86224571ab205e299aee8259f94086f61d91b0 /lisp/mastodon-tl.el | |
parent | 65821b2f24c40fbd5cb703757913af54b7e47243 (diff) |
add image-description text property
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r-- | lisp/mastodon-tl.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el index 8e3ce4a..97e8bc5 100644 --- a/lisp/mastodon-tl.el +++ b/lisp/mastodon-tl.el @@ -1053,11 +1053,12 @@ message is a link which unhides/hides the main body." (concat "Media:: " .preview_url) ; string .preview_url .remote_url .type .description display-str ; display - 'shr-link) + 'shr-link .description) "\n"))))) (defun mastodon-tl--propertize-img-str-or-url - (str media-url full-remote-url type help-echo &optional display face) + (str media-url full-remote-url type help-echo + &optional display face caption) "Propertize an media placeholder string \"[img]\" or media URL. STR is the string to propertize, MEDIA-URL is the preview link, FULL-REMOTE-URL is the link to the full resolution image on the @@ -1074,6 +1075,7 @@ HELP-ECHO, DISPLAY, and FACE are the text properties to add." 'mastodon-tab-stop 'image ; for do-link-action-at-point 'image-url full-remote-url ; for shr-browse-image 'keymap mastodon-tl--shr-image-map-replacement + 'image-description caption 'help-echo (if (or (string= type "image") (string= type nil) (string= type "unknown")) ; handle borked images |