diff --git a/app/controllers/bubbles_controller.rb b/app/controllers/bubbles_controller.rb
index 711b52a51..30b6344df 100644
--- a/app/controllers/bubbles_controller.rb
+++ b/app/controllers/bubbles_controller.rb
@@ -6,8 +6,8 @@ class BubblesController < ApplicationController
def index
@bubbles = @bucket.bubbles.not_popped
- if params[:filter].present?
- @bubbles = @bubbles.mentioning(params[:filter])
+ if params[:term].present?
+ @bubbles = @bubbles.mentioning(params[:term])
end
if params[:tag_id]
diff --git a/app/helpers/bubbles_helper.rb b/app/helpers/bubbles_helper.rb
index c57951963..380916c03 100644
--- a/app/helpers/bubbles_helper.rb
+++ b/app/helpers/bubbles_helper.rb
@@ -20,4 +20,8 @@ module BubblesHelper
"--bubble-size: var(--bubble-size-#{rank});"
end
+
+ def bubble_filter_params
+ params.permit(:term, :tag_id, :assignee_id)
+ end
end
diff --git a/app/views/bubbles/_filters.html.erb b/app/views/bubbles/_filters.html.erb
index d3b117468..58cbc3936 100644
--- a/app/views/bubbles/_filters.html.erb
+++ b/app/views/bubbles/_filters.html.erb
@@ -1,5 +1,3 @@
-<% filter_params = params.permit(:filter, :tag_id, :assignee_id) %>
-