remove rate limiting for posts

This commit is contained in:
ioBridge 2011-03-27 19:33:47 -04:00
parent 4852fc8a61
commit fbcbe79764

View File

@ -96,9 +96,6 @@ class ChannelsController < ApplicationController
if (api_key && api_key.write_flag) if (api_key && api_key.write_flag)
channel = Channel.find(api_key.channel_id) channel = Channel.find(api_key.channel_id)
# rate limit posts
render :text => '0' and return if (Time.now < channel.updated_at + 14.seconds)
# update entry_id for channel and feed # update entry_id for channel and feed
entry_id = channel.last_entry_id.nil? ? 1 : channel.last_entry_id + 1 entry_id = channel.last_entry_id.nil? ? 1 : channel.last_entry_id + 1
channel.last_entry_id = entry_id channel.last_entry_id = entry_id