aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-05-07 19:52:36 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-05-08 08:16:34 +0200
commit87e6975d7ff26aeaca1b2020dd2a3ccfd9d6e1a2 (patch)
tree8a86c9d9e6d82977ba8b5bc71dddcf15d38a0132 /lisp/mastodon.el
parent80c3d0250b9492b877ae93b0cb570b8e2774171e (diff)
audit: mastodon.el, -toot.el (started)
Diffstat (limited to 'lisp/mastodon.el')
-rw-r--r--lisp/mastodon.el15
1 files changed, 5 insertions, 10 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el
index e181786..ede0662 100644
--- a/lisp/mastodon.el
+++ b/lisp/mastodon.el
@@ -306,11 +306,10 @@ from the server and load anew."
(progn (switch-to-buffer buffer)
(mastodon-tl--update))
(message "Loading your notifications...")
- (mastodon-tl--init-sync
- (or buffer-name "notifications")
- "notifications"
- 'mastodon-notifications--timeline
- type)
+ (mastodon-tl--init-sync (or buffer-name "notifications")
+ "notifications"
+ 'mastodon-notifications--timeline
+ type)
(with-current-buffer buffer
(use-local-map mastodon-notifications--map)))))
@@ -329,11 +328,7 @@ not, just browse the URL in the normal fashion."
(mastodon-tl--property 'shr-url :no-move)
(read-string "Lookup URL: "))))
(if (not (mastodon--masto-url-p 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
+ ;; (shr-browse-url query) ; doesn't work (keep our shr keymap)
(browse-url query)
(message "Performing lookup...")
(let* ((url (format "%s/api/v2/search" mastodon-instance-url))