Set `default_content_type` default from settings.yml

Glitch-soc used to allow setting the default content type for new users by changing the setting in settings.yml.

Since the refactor of user settings, changing it had no effect.

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
pull/2361/head
Plastikmensch 2023-08-09 16:22:48 +02:00
parent 3b49b5a880
commit c57d730d5b
No known key found for this signature in database
GPG Key ID: 96381D586F4A6077
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class UserSettings
setting :default_language, default: nil
setting :default_sensitive, default: false
setting :default_privacy, default: nil, in: %w(public unlisted private)
setting :default_content_type, default: 'text/plain'
setting :default_content_type, default: -> { ::Setting.default_content_type }
setting :hide_followers_count, default: false
namespace :web do