diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-03-18 15:16:34 +0100 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-03-18 18:21:11 +0100 |
commit | 7bd869fdb58b95ae5a3d009f7030f8854191581d (patch) | |
tree | c244f5db14c64a584c5afa3eed0ad548514e85da /lisp/mastodon-views.el | |
parent | e6d2c3ab8cc616799ccff979fa66e3d83c43f9f8 (diff) |
fix check for filter on delete-filter
Diffstat (limited to 'lisp/mastodon-views.el')
-rw-r--r-- | lisp/mastodon-views.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mastodon-views.el b/lisp/mastodon-views.el index 1e3dd4a..2a6238b 100644 --- a/lisp/mastodon-views.el +++ b/lisp/mastodon-views.el @@ -660,7 +660,7 @@ Prompt for a context, must be a list containting at least one of \"home\", (phrase (get-text-property (point) 'phrase)) (url (mastodon-http--api (format "filters/%s" filter-id)))) - (if (equal nil filter-id) + (if (null phrase) (error "No filter at point?") (when (y-or-n-p (format "Delete this filter? "))) (let ((response (mastodon-http--delete url))) |