aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-03-09 18:52:30 +0100
committermarty hiatt <martianhiatus@riseup.net>2024-03-09 18:52:30 +0100
commit5704193a0209b0238190af76078b5aab0b6417c4 (patch)
treeabb4e8c970a521f3372c579029719f50de787e38 /lisp/mastodon.el
parent98351a7c4fb2bac778ca17ddd03706b0fb016c47 (diff)
parent2b5b5cdd214be61b91669f143a19a4400f35d8fd (diff)
Merge branch 'develop'
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r--lisp/mastodon.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index 4928bf1..4667450 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -455,6 +455,10 @@ Calls `mastodon-tl--get-buffer-type', which see."
(mastodon-tl--get-buffer-type))))))
(switch-to-buffer choice)))
+(defun mastodon--url-at-point ()
+ "`thing-at-point' provider function."
+ (get-text-property (point) 'shr-url))
+
(defun mastodon-mode-hook-fun ()
"Function to add to `mastodon-mode-hook'."
(when (require 'emojify nil :noerror)
@@ -467,8 +471,7 @@ Calls `mastodon-tl--get-buffer-type', which see."
;; make `thing-at-point' functions work:
(setq-local thing-at-point-provider-alist
(append thing-at-point-provider-alist
- '((url . eww--url-at-point)))))
-
+ '((url . mastodon--url-at-point)))))
;;;###autoload
(add-hook 'mastodon-mode-hook #'mastodon-mode-hook-fun)