Added local_following_count to account model

• Added:
- local_following_count to account model
This commit is contained in:
mgabdev 2021-01-13 17:16:30 -05:00
parent 2c5676a2fc
commit 27389883dd
1 changed files with 4 additions and 0 deletions

View File

@ -149,6 +149,10 @@ class Account < ApplicationRecord
Follow.where(target_account_id: id).count
end
def local_following_count
Follow.where(account_id: id).count
end
def chat_conversation_accounts_count
ChatConversationAccount.where(account_id: id).count
end