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

Fix pinned statuses being shown in a featured hashtag (#9971)

parent e02a13f6
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -52,7 +52,7 @@ class AccountsController < ApplicationController
private
def show_pinned_statuses?
[replies_requested?, media_requested?, params[:max_id].present?, params[:min_id].present?].none?
[replies_requested?, media_requested?, tag_requested?, params[:max_id].present?, params[:min_id].present?].none?
end
def filtered_statuses
......
......@@ -38,7 +38,7 @@ class Settings::FeaturedTagsController < Settings::BaseController
end
def set_featured_tags
@featured_tags = current_account.featured_tags.reject(&:new_record?)
@featured_tags = current_account.featured_tags.order(statuses_count: :desc).reject(&:new_record?)
end
def set_most_used_tags
......
......@@ -63,7 +63,7 @@
- @endorsed_accounts.each do |account|
= account_link_to account
- @account.featured_tags.each do |featured_tag|
- @account.featured_tags.order(statuses_count: :desc).each do |featured_tag|
.directory__tag{ class: params[:tag] == featured_tag.name ? 'active' : nil }
= link_to short_account_tag_path(@account, featured_tag.tag) do
%h4
......
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