about summary refs log tree commit diff
path: root/app/serializers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2022-05-16 19:13:36 +0200
committerGitHub <noreply@github.com>2022-05-16 19:13:36 +0200
commit6c699b17234355598d6d3237e8826adf6f0688f9 (patch)
tree11d9fb4e95b866ca656a5986ad1e5ac1921b83bd /app/serializers
parent0cdb07757050825725cac76f1c9cf11cf64acc0a (diff)
Fix preferred posting language returning unusable value in REST API (#18428)
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/rest/preferences_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/rest/preferences_serializer.rb b/app/serializers/rest/preferences_serializer.rb
index 119f0e06d..874bd990d 100644
--- a/app/serializers/rest/preferences_serializer.rb
+++ b/app/serializers/rest/preferences_serializer.rb
@@ -17,7 +17,7 @@ class REST::PreferencesSerializer < ActiveModel::Serializer
   end
 
   def posting_default_language
-    object.user.setting_default_language.presence
+    object.user.preferred_posting_language
   end
 
   def reading_default_sensitive_media