Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 82ef5c04 rédigé par Eugen Rochko's avatar Eugen Rochko Validation de GitHub
Parcourir les fichiers

Fix list of local followers showing remote followers in admin UI (#9700)

parent 5efedb5d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -8,15 +8,11 @@ module Admin ...@@ -8,15 +8,11 @@ module Admin
def index def index
authorize :account, :index? authorize :account, :index?
@followers = followers.recent.page(params[:page]).per(PER_PAGE) @followers = @account.followers.local.recent.page(params[:page]).per(PER_PAGE)
end end
def set_account def set_account
@account = Account.find(params[:account_id]) @account = Account.find(params[:account_id])
end end
def followers
Follow.includes(:account).where(target_account: @account)
end
end end
end end
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter