Merge pull request #172 from cheeaun/main

Update from main
This commit is contained in:
Chee Aun 2023-06-24 09:15:26 +08:00 committed by GitHub
commit 2c31e8e04c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -217,14 +217,14 @@ function Compose({
} else { } else {
focusTextarea(); focusTextarea();
console.log('Apply prefs', prefs); console.log('Apply prefs', prefs);
if (prefs.postingDefaultVisibility) { if (prefs['posting:default:visibility']) {
setVisibility(prefs.postingDefaultVisibility); setVisibility(prefs['posting:default:visibility']);
} }
if (prefs.postingDefaultLanguage) { if (prefs['posting:default:language']) {
setLanguage(prefs.postingDefaultLanguage); setLanguage(prefs['posting:default:language']);
} }
if (prefs.postingDefaultSensitive) { if (prefs['posting:default:sensitive']) {
setSensitive(prefs.postingDefaultSensitive); setSensitive(prefs['posting:default:sensitive']);
} }
} }
if (draftStatus) { if (draftStatus) {