Commit 27389883 authored by mgabdev's avatar mgabdev

Added local_following_count to account model

• Added:
- local_following_count to account model
parent 2c5676a2
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment