[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon c688fd0b6e 09/22: fix setting lang un toot compos
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon c688fd0b6e 09/22: fix setting lang un toot compose buffer |
Date: |
Fri, 31 May 2024 10:01:36 -0400 (EDT) |
branch: elpa/mastodon
commit c688fd0b6eaa02b9fe0232fed860dd4d846bebdb
Author: marty hiatt <martianhiatus@riseup.net>
Commit: marty hiatt <martianhiatus@riseup.net>
fix setting lang un toot compose buffer
---
lisp/mastodon-profile.el | 2 +-
lisp/mastodon-toot.el | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index 98ac9defac..712d447e27 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -501,7 +501,7 @@ Returns the results as an alist."
"Limit string X to 255 chars max."
(if (> (length x) 255) (substring x 0 255) x))
-;; used in tl.el
+;; used in tl.el and toot.el:
(defun mastodon-profile--get-preferences-pref (pref)
"Fetch PREF from the endpoint \"/preferences\".
If `mastodon-profile-acccount-preferences-data' is set, fetch
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 89b1eec801..654918cc4c 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -1892,8 +1892,7 @@ EDIT means we are editing an existing toot, not composing
a new one."
;; `mastodon-profile-credential-account' nor in
;; `mastodon-profile-account-settings'!
(setq mastodon-toot--language
- (alist-get 'posting:default:language
- mastodon-profile-acccount-preferences-data))
+ (mastodon-profile--get-preferences-pref 'posting:default:language))
;; display original toot:
(if mastodon-toot-display-orig-in-reply-buffer
(progn
- [nongnu] elpa/mastodon 8e3b3ebb07 03/22: get-source-pref > get-source-value, (continued)
- [nongnu] elpa/mastodon 8e3b3ebb07 03/22: get-source-pref > get-source-value, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon 7d08161609 01/22: add view-item-on-own-instance fun, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon 355e1814be 06/22: refactor remote-local domain checks, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon 87dfd9bd20 11/22: not working unfilter user langs. adds json flag arg through action funs, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon 5b321820fa 13/22: update index, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon c194bfd5af 08/22: autoloads, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon e17cb2e239 07/22: docstrings, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon 040c69ad67 10/22: display filtered follow langs on user profiles. FIX #559., ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon fa54e20779 04/22: account settings var docstring., ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon 0bebd58588 05/22: set default language in compose buffer from, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon c688fd0b6e 09/22: fix setting lang un toot compose buffer,
ELPA Syncer <=
- [nongnu] elpa/mastodon 9d043ea3fb 12/22: unfilter langs: POST raw params and it works!, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon 9785650845 14/22: docstring and index, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon 89a166d1a2 15/22: \ binding for remote local tl, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon cbd1038eaf 17/22: add fallback to tl--init*: if no results, try trending statuses. FIX #562, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon ac5684acaa 20/22: bump version, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon 9196718802 16/22: some readme updates, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon b7a6145b89 21/22: Merge branch 'develop', ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon 40971e1f1f 22/22: index, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon 78d4d9a29d 18/22: update info pages, ELPA Syncer, 2024/05/31
- [nongnu] elpa/mastodon 0312b494a6 19/22: add unfilter user filter langs option to filter user langs, ELPA Syncer, 2024/05/31