Change quoted posts from silenced accounts not to be hidden (#36166)
This commit is contained in:
parent
c8551a3eca
commit
a94d7bf520
3 changed files with 9 additions and 3 deletions
|
|
@ -8,13 +8,13 @@ class REST::BaseQuoteSerializer < ActiveModel::Serializer
|
|||
|
||||
# Extra states when a status is unavailable
|
||||
return 'deleted' if object.quoted_status.nil?
|
||||
return 'unauthorized' if status_filter.filtered?
|
||||
return 'unauthorized' if status_filter.filtered_for_quote?
|
||||
|
||||
object.state
|
||||
end
|
||||
|
||||
def quoted_status
|
||||
object.quoted_status if object.accepted? && object.quoted_status.present? && !status_filter.filtered?
|
||||
object.quoted_status if object.accepted? && object.quoted_status.present? && !status_filter.filtered_for_quote?
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue