* Fix: `ProcessReferencesService`リファクタリング・編集時の参照引用変更バグ修正 * Fix test * Fix index_with * Fix to method chain
This commit is contained in:
parent
534d66f904
commit
0ed5577094
3 changed files with 104 additions and 46 deletions
|
@ -121,9 +121,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def status_references_count
|
||||
return status_reference_ids.size if status_reference_ids.any?
|
||||
|
||||
Rails.cache.exist?("status_reference:#{object.id}") ? 1 : 0
|
||||
status_reference_ids.size
|
||||
end
|
||||
|
||||
def reblogs_count
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue