Merge commit '8ba1487f30685fff4555a7537d3e6c765c73a07c' into glitch-soc/merge-upstream
Conflicts: - `spec/models/concerns/account/interactions_spec.rb`: Conflict due to glitch-soc having modified specs ages ago. The covered code is the same as upstream, though. Took upstream's version of the specs. - `spec/models/status_spec.rb`: Conflict because glitch-soc tests for an extra glitch-soc-specific method. Added upstream's changes while keeping the glitch-soc method.
This commit is contained in:
commit
93bdb16817
150 files changed
+1600
-1232
No files matched your search
@@ -4,7 +4,7 @@ class Admin::Trends::TagsController < Admin::BaseController
|
||||
def index
|
||||
authorize :tag, :review?
|
||||
|
||||
@pending_tags_count = Tag.pending_review.async_count
|
||||
@pending_tags_count = pending_tags.async_count
|
||||
@tags = filtered_tags.page(params[:page])
|
||||
@form = Trends::TagBatch.new
|
||||
end
|
||||
@@ -22,6 +22,10 @@ class Admin::Trends::TagsController < Admin::BaseController
|
||||
|
||||
private
|
||||
|
||||
def pending_tags
|
||||
Trends::TagFilter.new(status: :pending_review).results
|
||||
end
|
||||
|
||||
def filtered_tags
|
||||
Trends::TagFilter.new(filter_params).results
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user