[IMP] ir_http: add facebookinternalhit in the list of bot.
Avoid redirect in en_US if lang is installed when a link is added via Facebook
This commit is contained in:
parent
72cc8b99a9
commit
9f93a9ae1c
|
@ -42,7 +42,7 @@ class ir_http(orm.AbstractModel):
|
|||
else:
|
||||
request.uid = request.session.uid
|
||||
|
||||
bots = "bot|crawl|slurp|spider|curl|wget".split("|")
|
||||
bots = "bot|crawl|slurp|spider|curl|wget|facebookexternalhit".split("|")
|
||||
def is_a_bot(self):
|
||||
# We don't use regexp and ustr voluntarily
|
||||
# timeit has been done to check the optimum method
|
||||
|
|
Loading…
Reference in New Issue