Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gab-social
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
gab
social
gab-social
Commits
27389883
Commit
27389883
authored
Jan 13, 2021
by
mgabdev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added local_following_count to account model
• Added: - local_following_count to account model
parent
2c5676a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
app/models/account.rb
app/models/account.rb
+4
-0
No files found.
app/models/account.rb
View file @
27389883
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment