Skip to content

Commit c3bfbe2

Browse files
Gargronhiyuki2578
authored andcommitted
Fix hashtag batch actions not redirecting back with right filters (mastodon#11962)
Regression from mastodon#11829
1 parent 60bdee7 commit c3bfbe2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

app/views/admin/tags/index.html.haml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@
4343

4444
= form_for(@form, url: batch_admin_tags_path) do |f|
4545
= hidden_field_tag :page, params[:page] || 1
46-
= hidden_field_tag :context, params[:context]
47-
= hidden_field_tag :review, params[:review]
46+
= hidden_field_tag :name, params[:name] if params[:name].present?
47+
48+
- Admin::FilterHelper::TAGS_FILTERS.each do |key|
49+
= hidden_field_tag key, params[key] if params[key].present?
4850

4951
.batch-table
5052
.batch-table__toolbar

0 commit comments

Comments
 (0)