]> cat aescling's git repositories - mastodon.git/commitdiff
Show 40 profiles per directory page instead of 30 (#9609)
authorEugen Rochko <eugen@zeonfederated.com>
Sat, 22 Dec 2018 22:31:23 +0000 (23:31 +0100)
committerGitHub <noreply@github.com>
Sat, 22 Dec 2018 22:31:23 +0000 (23:31 +0100)
To better align with the list of hashtags

app/controllers/directories_controller.rb

index df012657a8d9748dc9ef1ce22c1273b7eab42105..96fe4c1c6ebc6a8dfead3b7ff53b62e48e1e7d0e 100644 (file)
@@ -32,7 +32,7 @@ class DirectoriesController < ApplicationController
   end
 
   def set_accounts
-    @accounts = Account.discoverable.page(params[:page]).per(30).tap do |query|
+    @accounts = Account.discoverable.page(params[:page]).per(40).tap do |query|
       query.merge!(Account.tagged_with(@tag.id)) if @tag
     end
   end