remove rate limiting for posts
This commit is contained in:
		@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user