From 9d043ea3fbb8f2b8d162329b570a84f4790fc6f6 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Wed, 29 May 2024 15:37:35 +0200 Subject: unfilter langs: POST raw params and it works! --- lisp/mastodon-tl.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lisp/mastodon-tl.el') 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 " "))) -- cgit v1.2.3