Skip to content

Commit

Permalink
Fix popular discussions
Browse files Browse the repository at this point in the history
  • Loading branch information
elektronaut committed Nov 18, 2024
1 parent 79ed00a commit 2cac84f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/discussions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def index
end

def popular
@days = params[:days].to_i
@days = (params[:days] || 7).to_i
@days = 180 if @days > 180
@exchanges = Discussion.popular_in_the_last(@days.days)
.viewable_by(current_user).page(params[:page])
Expand Down

0 comments on commit 2cac84f

Please sign in to comment.