Browse Source

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

closed-social-v3
Eugen Rochko 7 years ago
committed by GitHub
parent
commit
7ca173be47
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/services/post_status_service.rb

+ 2
- 1
app/services/post_status_service.rb 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

Loading…
Cancel
Save