aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/mastodon-profile.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 8c55155..68d74df 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -394,11 +394,10 @@ Current settings are fetched from the server."
(mastodon-profile--get-source-value key)
(mastodon-profile--get-json-value key)))
(prompt (format "Account setting %s is %s. Toggle?" key val)))
- (if val
- (when (y-or-n-p prompt)
- (mastodon-profile--update-preference (symbol-name key) "false" source))
- (when (y-or-n-p prompt)
- (mastodon-profile--update-preference (symbol-name key) "true" source)))))
+ (when (y-or-n-p prompt)
+ (mastodon-profile--update-preference (symbol-name key)
+ (if val "false" "true")
+ source))))
(defun mastodon-profile--edit-string-value (key)
"Edit the string for account preference KEY."