Added local_following_count to account model
• Added: - local_following_count to account model
This commit is contained in:
parent
2c5676a2fc
commit
27389883dd
|
@ -149,6 +149,10 @@ class Account < ApplicationRecord
|
||||||
Follow.where(target_account_id: id).count
|
Follow.where(target_account_id: id).count
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def local_following_count
|
||||||
|
Follow.where(account_id: id).count
|
||||||
|
end
|
||||||
|
|
||||||
def chat_conversation_accounts_count
|
def chat_conversation_accounts_count
|
||||||
ChatConversationAccount.where(account_id: id).count
|
ChatConversationAccount.where(account_id: id).count
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue