aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-profile.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2022-01-11 18:17:30 +0100
committermousebot <mousebot@riseup.net>2022-01-11 18:17:30 +0100
commite11e75101bd816a437d51da164bd9b6ccfca44ec (patch)
treeee53b6846bcd016449a0d3b6697e7cc75fd80292 /lisp/mastodon-profile.el
parentf9f4ce55ecf93cd8eeb609a38d4679aed5c5bace (diff)
parentdd5f445ca7dcdb013c1cb31b61b8ae01444405cc (diff)
Merge branch 'fix-local-mentions-links-checking'
Diffstat (limited to 'lisp/mastodon-profile.el')
-rw-r--r--lisp/mastodon-profile.el46
1 files changed, 0 insertions, 46 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 05cacde..21b40b3 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -69,8 +69,6 @@
(let ((map (make-sparse-keymap)))
(define-key map (kbd "s") #'mastodon-profile--open-followers)
(define-key map (kbd "g") #'mastodon-profile--open-following)
- (define-key map (kbd "a") #'mastodon-profile--follow-request-accept)
- (define-key map (kbd "j") #'mastodon-profile--follow-request-reject)
map)
"Keymap for `mastodon-profile-mode'.")
@@ -153,50 +151,6 @@ extra keybindings."
"follow_requests"
'mastodon-profile--add-author-bylines))
-(defun mastodon-profile--follow-request-accept ()
- "Accept the follow request of user at point."
- (interactive)
- (if (mastodon-tl--find-property-range 'toot-json (point))
- (let* ((acct-json (mastodon-profile--toot-json))
- (id (alist-get 'id acct-json))
- (handle (alist-get 'acct acct-json))
- (name (alist-get 'username acct-json)))
- (if id
- (let ((response
- (mastodon-http--post
- (concat
- (mastodon-http--api "follow_requests")
- (format "/%s/authorize" id))
- nil nil)))
- (mastodon-http--triage response
- (lambda ()
- (message "Follow request of %s (@%s) accepted!"
- name handle))))
- (message "No account result at point?")))
- (message "No follow request at point?")))
-
-(defun mastodon-profile--follow-request-reject ()
- "Reject the follow request of user at point."
- (interactive)
- (if (mastodon-tl--find-property-range 'toot-json (point))
- (let* ((acct-json (mastodon-profile--toot-json))
- (id (alist-get 'id acct-json))
- (handle (alist-get 'acct acct-json))
- (name (alist-get 'username acct-json)))
- (if id
- (let ((response
- (mastodon-http--post
- (concat
- (mastodon-http--api "follow_requests")
- (format "/%s/reject" id))
- nil nil)))
- (mastodon-http--triage response
- (lambda ()
- (message "Follow request of %s (@%s) rejected!"
- name handle))))
- (message "No account result at point?")))
- (message "No follow request at point?")))
-
(defun mastodon-profile--update-user-profile-note ()
"Fetch user's profile note and display for editing."
(interactive)