Fix: #94 ProcessReferencesServiceリファクタリング・編集時の参照引用変更バグ修正 (#329)

* Fix: `ProcessReferencesService`リファクタリング・編集時の参照引用変更バグ修正

* Fix test

* Fix index_with

* Fix to method chain
This commit is contained in:
KMY(雪あすか) 2023-12-06 13:39:55 +09:00 committed by GitHub
parent 534d66f904
commit 0ed5577094
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 104 additions and 46 deletions

View file

@ -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