- follow.following = @friend
- if current_user.friends_with?(@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
+ follow.following = @user
+ if current_user.follows?(@user)
+ flash[:warning] = t ".already_followed", :name => @user.display_name
+ elsif current_user.follows.where(:created_at => Time.now.utc - 1.hour..).count >= current_user.max_follows_per_hour