Skip to content
Snippets Groups Projects
Commit 7ca173be authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix #4850 - When visibility missing from API call to toot, fallback to user preference (#4861)

parent 1ae5d49a
No related branches found
No related tags found
No related merge requests found
......@@ -27,9 +27,10 @@ class PostStatusService < BaseService
thread: in_reply_to,
sensitive: options[:sensitive],
spoiler_text: options[:spoiler_text] || '',
visibility: options[:visibility],
visibility: options[:visibility] || account.user&.setting_default_privacy,
language: detect_language_for(text, account),
application: options[:application])
attach_media(status, media)
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment