mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Do not consider mobile app traffic as crawler visits
Followup to a4eb523a
This commit is contained in:
@@ -66,7 +66,7 @@ module Middleware
|
||||
if @env[DISCOURSE_RENDER] == "crawler" || CrawlerDetection.crawler?(user_agent, @env["HTTP_VIA"])
|
||||
:true
|
||||
else
|
||||
user_agent.downcase.include?("discourse") ? :true : :false
|
||||
user_agent.downcase.include?("discourse") && !user_agent.downcase.include?("mobile") ? :true : :false
|
||||
end
|
||||
end
|
||||
@is_crawler == :true
|
||||
|
Reference in New Issue
Block a user