0
0
Fork 0

Change layout of public profile directory to be the same as in web UI (#11705)

This commit is contained in:
Eugen Rochko 2019-08-30 07:41:16 +02:00 committed by GitHub
parent 7235f538c6
commit 9871904172
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 83 additions and 5 deletions

View file

@ -28,7 +28,7 @@ class DirectoriesController < ApplicationController
end
def set_accounts
@accounts = Account.local.discoverable.by_recent_status.page(params[:page]).per(15).tap do |query|
@accounts = Account.local.discoverable.by_recent_status.page(params[:page]).per(20).tap do |query|
query.merge!(Account.tagged_with(@tag.id)) if @tag
query.merge!(Account.not_excluded_by_account(current_account)) if current_account
end