aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-profile.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2022-02-15 14:03:22 +0100
committermousebot <mousebot@riseup.net>2022-02-15 14:03:22 +0100
commit0b01efc1187ca5d40839c8eed2d9ae7ddef144f7 (patch)
tree9cdfe94d3c85bd117e0fada8ac3cac4412190a59 /lisp/mastodon-profile.el
parent6e68b7051595bf99bade4d3052286f95d606a155 (diff)
make accept/reject foll reqs cmds avail in foll reqs view!
Diffstat (limited to 'lisp/mastodon-profile.el')
-rw-r--r--lisp/mastodon-profile.el13
1 files changed, 13 insertions, 0 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 5811a4a..d632e5e 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -57,6 +57,8 @@
(autoload 'mastodon-tl--init "mastodon-tl.el")
(autoload 'mastodon-http--patch "mastodon-http")
(autoload 'mastodon-http--patch-json "mastodon-http")
+(autoload 'mastodon-notifications--follow-request-reject "mastodon-notifications")
+(autoload 'mastodon-notifications--follow-request-accept "mastodon-notifications")
(defvar mastodon-instance-url)
(defvar mastodon-tl--buffer-spec)
@@ -72,6 +74,17 @@
map)
"Keymap for `mastodon-profile-mode'.")
+(defvar mastodon-profile--view-follow-requests-keymap
+ (let ((map (make-sparse-keymap)))
+ (define-key map (kbd "r") #'mastodon-notifications--follow-request-reject)
+ (define-key map (kbd "a") #'mastodon-notifications--follow-request-accept)
+ ;; (define-key map (kbd "g") 'mastodon-notifications--view-follow-requests
+ ;; (define-key map (kbd "t") #'mastodon-toot)
+ (define-key map (kbd "q") #'kill-current-buffer)
+ (define-key map (kbd "Q") #'kill-buffer-and-window)
+ map)
+ "Keymap for viewing follow requests.")
+
(define-minor-mode mastodon-profile-mode
"Toggle mastodon profile minor mode.