This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Replace User.count -> User.confirmed.count (
#2127
)
closed-social-glitch-2
alpaca-tc
7 years ago
committed by
Eugen
parent
dca0ffa1a1
commit
5ce8a1811a
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/presenters/instance_presenter.rb
+ 1
- 1
app/presenters/instance_presenter.rb
View File
@ -15,7 +15,7 @@ class InstancePresenter
end
def
user_count
Rails
.
cache
.
fetch
(
'user_count'
)
{
User
.
count
}
Rails
.
cache
.
fetch
(
'user_count'
)
{
User
.
co
nfirmed
.
co
unt
}
end
def
status_count
Write
Preview
Loading…
Cancel
Save