aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-profile.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-09-12 16:26:45 +0200
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-09-12 16:35:11 +0200
commit0b65ec90bd829530fe8bef843f873c3ecc6c0721 (patch)
treeeb2f2ea61e24724bd6317e020ce772acd418aec7 /lisp/mastodon-profile.el
parent3e404cb392cab584bdf1f73d099ae0dd1c25708f (diff)
respect user pref reading:expand:spoilers for CWs
respect always expand CWd posts account preference
Diffstat (limited to 'lisp/mastodon-profile.el')
-rw-r--r--lisp/mastodon-profile.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index b404bb6..012e357 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -365,6 +365,15 @@ Current settings are fetched from the server."
(interactive)
(mastodon-profile--edit-string-value 'display_name))
+(defun mastodon-profile--get-preferences-pref (pref)
+ "Fetch PREF from the endpoint \"/preferences\".
+This endpoint only holds a few preferences. For others, see
+`mastodon-profile--update-preference' and its endpoint,
+\"/accounts/update_credentials.\""
+ (alist-get pref
+ (mastodon-http--get-json
+ (mastodon-http--api "preferences"))))
+
(defun mastodon-profile-view-preferences ()
"View user preferences in another window."
(interactive)