aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index b169f00..a61aead 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -288,9 +288,12 @@ not, just browse the URL in the normal fashion."
(get-text-property (point) 'shr-url)
(read-string "Lookup URL: "))))
(if (not (mastodon--masto-url-p query))
- (if (equal major-mode 'mastodon-mode)
- (shr-browse-url query) ;; keep our shr keymap
- (browse-url query))
+ ;; this doesn't work as shr-browse-url doesn't take a url arg
+ ;; and with no args it can't use our read-string query, but only
+ ;; looks for a url at point
+ ;; (if (equal major-mode 'mastodon-mode)
+ ;; (shr-browse-url query) ;; keep our shr keymap
+ (browse-url query)
(message "Performing lookup...")
(let* ((url (format "%s/api/v2/search" mastodon-instance-url))
(param (concat "resolve=t")) ; webfinger