1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 16:53:17 +00:00

Update AdminInstanceController, fix instance scan

This commit is contained in:
Daniel Supernault 2019-10-16 21:08:46 -06:00
parent c69784f4c6
commit 79292ad610
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -44,7 +44,7 @@ trait AdminInstanceController
{ {
Profile::whereNotNull('domain') Profile::whereNotNull('domain')
->latest() ->latest()
->groupBy('domain') ->groupBy(['domain', 'id'])
->where('created_at', '>', now()->subMonths(2)) ->where('created_at', '>', now()->subMonths(2))
->chunk(100, function($domains) { ->chunk(100, function($domains) {
foreach($domains as $domain) { foreach($domains as $domain) {