mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding WP7 as user agent.
This commit is contained in:
parent
059c5cca79
commit
e0822d71b6
1 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,8 @@ def user(u, msg):
|
||||||
platform = 'FF'
|
platform = 'FF'
|
||||||
elif 'Opera' in user_agent:
|
elif 'Opera' in user_agent:
|
||||||
platform = 'Opera'
|
platform = 'Opera'
|
||||||
|
elif 'WP7' in user_agent:
|
||||||
|
platform = 'WP7'
|
||||||
premium = '*' if u.is_authenticated() and u.profile.is_premium else ''
|
premium = '*' if u.is_authenticated() and u.profile.is_premium else ''
|
||||||
username = cipher(u.__unicode__()) if settings.CIPHER_USERNAMES else u
|
username = cipher(u.__unicode__()) if settings.CIPHER_USERNAMES else u
|
||||||
info(' ---> [~FB~SN%-6s~SB] [%s%s] %s' % (platform, username, premium, msg))
|
info(' ---> [~FB~SN%-6s~SB] [%s%s] %s' % (platform, username, premium, msg))
|
||||||
|
|
Loading…
Add table
Reference in a new issue