]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/follows_controller.rb
Create changeset_comments resources for users
[rails.git] / app / controllers / follows_controller.rb
index 0d8ee272a77a78c8d499e093e632715611827fa6..39d6191cd80445330b9ec56ec5d59b3cd43293b4 100644 (file)
@@ -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