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
Fix to limit to discoverable accounts. (
#10253
)
pull/4/head
mayaeh
5 years ago
committed by
Eugen Rochko
parent
0a6840564a
commit
d4ef90eae3
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
@ -34,7 +34,7 @@ class InstancePresenter
end
def
sample_accounts
Rails
.
cache
.
fetch
(
'sample_accounts'
,
expires_in
:
12
.
hours
)
{
Account
.
local
.
searchable
.
joins
(
:account_stat
)
.
popular
.
limit
(
3
)
}
Rails
.
cache
.
fetch
(
'sample_accounts'
,
expires_in
:
12
.
hours
)
{
Account
.
discoverable
.
popular
.
limit
(
3
)
}
end
def
version_number
Write
Preview
Loading…
Cancel
Save