aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus@riseup.net>2024-05-29 15:37:35 +0200
committermarty hiatt <martianhiatus@riseup.net>2024-05-29 15:37:35 +0200
commit9d043ea3fbb8f2b8d162329b570a84f4790fc6f6 (patch)
treec4ab90d9b24ff24ac2a6c59c83f4afbb940da0d9 /lisp/mastodon-tl.el
parent87dfd9bd20692475a9ffa783566a74ef21525835 (diff)
unfilter langs: POST raw params and it works!
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 7fd7f98..3d33e86 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -2109,7 +2109,7 @@ desired language if they are not marked as such (or as anything)."
(let ((langs "languages[]"))
(mastodon-tl--do-if-item
;; we need ("languages[]") as a param, with no "="
- (mastodon-tl--follow-user user-handle nil langs nil :json))))
+ (mastodon-tl--follow-user user-handle nil langs nil :raw))))
(defun mastodon-tl--read-filter-langs (&optional langs)
"Read language choices and return an alist array parameter.
@@ -2292,6 +2292,8 @@ ARGS is an alist of any parameters to send with the request."
((or (string-equal action "mute")
(string-equal action "unmute"))
(message "User %s (@%s) %sd!" name user-handle action))
+ ((equal args "languages[]")
+ (message "User %s language filters removed!" name))
((assoc "languages[]" args #'equal)
(message "User %s filtered by language(s): %s" name
(mapconcat #'cdr args " ")))