1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

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

This commit is contained in:
Eugen Rochko 2017-09-09 02:02:29 +02:00 committed by GitHub
parent 1ae5d49a71
commit 7ca173be47

View file

@ -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