Created
July 5, 2013 06:19
-
-
Save ysasaki/5932346 to your computer and use it in GitHub Desktop.
GitLab 5-3-stable DashboardのfeedにEventFilterを適用しないpatch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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