X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3fcdeba29e08a8bf3728ebc4a3e7682099381e59..420d9da1f98ee167a351828b2f20d3f1f0e164e7:/app/controllers/follows_controller.rb diff --git a/app/controllers/follows_controller.rb b/app/controllers/follows_controller.rb index 0d8ee272a..39d6191cd 100644 --- a/app/controllers/follows_controller.rb +++ b/app/controllers/follows_controller.rb @@ -22,7 +22,7 @@ class FollowsController < ApplicationController follow.following = @friend if current_user.follows?(@friend) flash[:warning] = t ".already_followed", :name => @friend.display_name - elsif current_user.follows.where(:created_at => Time.now.utc - 1.hour..).count >= current_user.max_friends_per_hour + elsif current_user.follows.where(:created_at => Time.now.utc - 1.hour..).count >= current_user.max_follows_per_hour flash[:error] = t ".limit_exceeded" elsif follow.save flash[:notice] = t ".success", :name => @friend.display_name