Skip to content

Commit

Permalink
Fix public posts from silenced accounts not being changed to unlisted
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire committed Feb 16, 2020
1 parent c48d895 commit 41e561b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/post_status_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def call(account, options = {})
def preprocess_attributes!
@text = @options.delete(:spoiler_text) if @text.blank? && @options[:spoiler_text].present?
@visibility = @options[:visibility] || @account.user&.setting_default_privacy
@visibility = :unlisted if @visibility == :public && @account.silenced?
@visibility = :unlisted if @visibility&.to_sym == :public && @account.silenced?
@scheduled_at = @options[:scheduled_at]&.to_datetime
@scheduled_at = nil if scheduled_in_the_past?
rescue ArgumentError
Expand Down

0 comments on commit 41e561b

Please sign in to comment.