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