diff options
author | marty hiatt <martianhiatus@riseup.net> | 2024-08-22 12:09:20 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus@riseup.net> | 2024-08-22 12:09:20 +0200 |
commit | 8b6e7a2312556552fd26f81d7ebafc94e3ef1316 (patch) | |
tree | 1a2e2bf8188108f8102d2c6ac90ccfbf1ae057a5 /lisp/mastodon-views.el | |
parent | 4c5f5ef110a0a1dbf2044106c11d3cae975f7d73 (diff) | |
parent | beeb8f3b2ebe25e8e3fb92e6f030cec39b818cec (diff) |
Merge branch 'equal' into develop
Diffstat (limited to 'lisp/mastodon-views.el')
-rw-r--r-- | lisp/mastodon-views.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/mastodon-views.el b/lisp/mastodon-views.el index ef91bd0..989a614 100644 --- a/lisp/mastodon-views.el +++ b/lisp/mastodon-views.el @@ -766,7 +766,7 @@ When t, whole words means only match whole words." "false")) (params `(("keyword" . ,updated) ("whole_word" . ,whole-word))) - (id (cdr (assoc choice alist #'equal))) + (id (cdr (assoc choice alist #'string=))) (url (mastodon-http--api-v2 (format "filters/keywords/%s" id))) (resp (mastodon-http--put url params))) (mastodon-views--filters-triage resp @@ -807,7 +807,7 @@ When t, whole words means only match whole words." (mastodon-tl--property 'item-json :no-move))) (alist (mastodon-tl--map-alist-vals-to-alist 'keyword 'id kws)) (choice (completing-read "Remove keyword: " alist)) - (id (cdr (assoc choice alist #'equal))) + (id (cdr (assoc choice alist #'string=))) (url (mastodon-http--api-v2 (format "filters/keywords/%s" id))) (resp (mastodon-http--delete url))) (mastodon-views--filters-triage resp (format "Keyword %s removed!" choice))))) @@ -1022,9 +1022,9 @@ IND is the optional indentation level to print at." (mastodon-views--print-json-keys (cdr el) (if ind (+ ind 4) 4))) (t ; basic handling of raw booleans: - (let ((val (cond ((equal (cdr el) :json-false) + (let ((val (cond ((eq (cdr el) :json-false) "no") - ((equal (cdr el) 't) + ((eq (cdr el) t) "yes") (t (cdr el))))) |