add user_agent to channels

This commit is contained in:
Lee Lawlor
2014-04-10 14:03:08 -04:00
parent a727752c94
commit 6ff22048b4
8 changed files with 51 additions and 1 deletions

View File

@ -265,6 +265,8 @@ class ChannelsController < ApplicationController
entry_id = channel.next_entry_id
channel.last_entry_id = entry_id
feed.entry_id = entry_id
# set user agent
channel.user_agent = get_header_value('USER_AGENT')
# try to get created_at datetime if appropriate
if params[:created_at].present?