Fix limited_scope
This commit is contained in:
parent
725ffa0258
commit
05ae3c1948
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@ class PostStatusService < BaseService
|
|||
return unless @options[:visibility] == 'circle' || (@options[:visibility] == 'limited' && @options[:circle_id].present?)
|
||||
|
||||
@circle = @options[:circle_id].present? && Circle.find(@options[:circle_id])
|
||||
@limited_scope = :circle
|
||||
raise ArgumentError if @circle.nil? || @circle.account_id != @account.id
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue