Bug Fix:Remove Score Filter From Tag Mod Index (#11599)
This commit is contained in:
parent
ddb70e2900
commit
c3b0103eb1
2 changed files with 1 additions and 5 deletions
|
|
@ -13,7 +13,6 @@ class ModerationsController < ApplicationController
|
|||
return unless current_user&.trusted
|
||||
|
||||
articles = Article.published
|
||||
.where("score > -5 AND score < 5")
|
||||
.order(published_at: :desc).limit(70)
|
||||
articles = articles.cached_tagged_with(params[:tag]) if params[:tag].present?
|
||||
if params[:state] == "new-authors"
|
||||
|
|
|
|||
|
|
@ -130,11 +130,8 @@ RSpec.describe "Moderations", type: :request do
|
|||
get "#{article.path}/actions_panel"
|
||||
end
|
||||
|
||||
it "shows the admin add tag option if the article has room for a tag" do
|
||||
it "shows the admin tag options", :aggregate_failures do
|
||||
expect(response.body).to include "admin-add-tag"
|
||||
end
|
||||
|
||||
it "shows the option to remove tags" do
|
||||
expect(response.body).to include "circle centered-icon adjustment-icon subtract"
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue