From 7bd869fdb58b95ae5a3d009f7030f8854191581d Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Sat, 18 Mar 2023 15:16:34 +0100 Subject: fix check for filter on delete-filter --- lisp/mastodon-views.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/mastodon-views.el') 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))) -- cgit v1.2.3