Added local_following_count to account model
• Added: - local_following_count to account model
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user