Skip to content

Commit

Permalink
Merge 8ea667a into ffa3a71
Browse files Browse the repository at this point in the history
  • Loading branch information
JangoSteve committed May 7, 2014
2 parents ffa3a71 + 8ea667a commit 6b5fb59
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/activities_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def index
# NOTE if the action is accessed then there's definitely activities, so skip check for #first to be nil
more_activities = first_activity_id < (activities.last.try(:id).presence || 1)

activities.each { |a| a.user ||= User.deleted_user }

respond_to do |format|
format.json { render :text => {:activities => activities.reverse, :more_activities => more_activities }.to_json(:include => :user) }
end
Expand Down

0 comments on commit 6b5fb59

Please sign in to comment.