Skip to content

Instantly share code, notes, and snippets.

@ysasaki
Created July 5, 2013 06:19
Show Gist options
  • Save ysasaki/5932346 to your computer and use it in GitHub Desktop.
Save ysasaki/5932346 to your computer and use it in GitHub Desktop.
GitLab 5-3-stable DashboardのfeedにEventFilterを適用しないpatch
diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb
index b74c22b..dd3e85d 100644
--- a/app/controllers/dashboard_controller.rb
+++ b/app/controllers/dashboard_controller.rb
@@ -12,7 +12,7 @@ class DashboardController < ApplicationController
@projects = @projects.limit(20)
@events = Event.in_projects(current_user.authorized_projects.pluck(:id))
- @events = @event_filter.apply_filter(@events)
+ @events = @event_filter.apply_filter(@events) if request.format != :atom
@events = @events.limit(20).offset(params[:offset] || 0)
@last_push = current_user.recent_push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment