Skip to content

Commit

Permalink
increased discussion comment length to 2000 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffdonthemic committed Jun 9, 2012
1 parent 0878572 commit bd85fbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/challenges_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ def new_comment
# capture their comments so we can show them again if recaptcha error
session[:captcha_comments] = params[:discussion][:comments]
if verify_recaptcha
if params[:discussion][:comments].length > 500
flash[:error] = "Comments cannot be longer than 500 characters. Please try again."
if params[:discussion][:comments].length > 2000
flash[:error] = "Comments cannot be longer than 2000 characters. Please try again."
else
post_results = Comments.save(current_access_token, current_user.username, params)
if post_results['Success'].eql?('true')
Expand Down Expand Up @@ -326,7 +326,7 @@ def leaderboard
@categories = Categories.all(current_access_token, :select => 'name,color__c', :where => 'true', :order_by => 'display_order__c')
respond_to do |format|
format.html
format.json { render :json => @this_month_leaders }
format.json { render :json => { "this_month " => @this_month_leaders, "this_year" => @this_year_leaders, "all_time" => @all_time_leaders } }
end
end

Expand Down
Binary file modified db/development.sqlite3
Binary file not shown.

0 comments on commit bd85fbc

Please sign in to comment.