Fix test: remove quote from ProcessReferencesService
This commit is contained in:
parent
2c268e47e7
commit
89358f1750
1 changed files with 5 additions and 5 deletions
|
@ -170,8 +170,8 @@ class ProcessReferencesService < BaseService
|
||||||
@referrable = StatusPolicy.new(@status.account, target_status).show?
|
@referrable = StatusPolicy.new(@status.account, target_status).show?
|
||||||
end
|
end
|
||||||
|
|
||||||
def quotable?(target_status)
|
def quotable?(_target_status)
|
||||||
target_status.account.allow_quote? && StatusPolicy.new(@status.account, target_status).quote?
|
true # TODO: quote
|
||||||
end
|
end
|
||||||
|
|
||||||
def add_references
|
def add_references
|
||||||
|
@ -185,8 +185,8 @@ class ProcessReferencesService < BaseService
|
||||||
next if status.blank?
|
next if status.blank?
|
||||||
|
|
||||||
attribute_type = @added_items[status_id]
|
attribute_type = @added_items[status_id]
|
||||||
quote = quote_attribute?(attribute_type)
|
quote_attribute?(attribute_type)
|
||||||
@added_objects << @status.reference_objects.new(target_status: status, attribute_type: attribute_type, quote: quote)
|
@added_objects << @status.reference_objects.new(target_status: status, attribute_type: attribute_type)
|
||||||
|
|
||||||
# TODO: quote
|
# TODO: quote
|
||||||
# @status.update!(quote_of_id: status_id) if quote
|
# @status.update!(quote_of_id: status_id) if quote
|
||||||
|
@ -239,7 +239,7 @@ class ProcessReferencesService < BaseService
|
||||||
quote = quote_attribute?(attribute_type)
|
quote = quote_attribute?(attribute_type)
|
||||||
quote_change = ref.quote != quote
|
quote_change = ref.quote != quote
|
||||||
|
|
||||||
ref.update!(attribute_type: attribute_type, quote: quote)
|
ref.update!(attribute_type: attribute_type)
|
||||||
|
|
||||||
next unless quote_change
|
next unless quote_change
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue