mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 19:38:24 +00:00
Merge pull request #3395 from riking/patch-1
FIX: Whoops, DiscourseLocalOnebox became DiscourseGlobalOnebox
This commit is contained in:
commit
a6ea9bd05c
@ -17,7 +17,8 @@ module Onebox
|
|||||||
route = Rails.application.routes.recognize_path(uri.path)
|
route = Rails.application.routes.recognize_path(uri.path)
|
||||||
case route[:controller]
|
case route[:controller]
|
||||||
when 'topics'
|
when 'topics'
|
||||||
true
|
# super will use matches_regexp to match the domain name
|
||||||
|
super
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user