aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/mastodon.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index da2d442..86afee2 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -287,9 +287,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