mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
fix most deprecations in the specs (still some left)
This commit is contained in:
@@ -3,8 +3,8 @@ module UrlHelper
|
||||
def is_local(url)
|
||||
url.present? && (
|
||||
Discourse.store.has_been_uploaded?(url) ||
|
||||
url =~ /^\/assets\// ||
|
||||
url =~ /^\/plugins\// ||
|
||||
!!(url =~ /^\/assets\//) ||
|
||||
!!(url =~ /^\/plugins\//) ||
|
||||
url.start_with?(Discourse.asset_host || Discourse.base_url_no_prefix)
|
||||
)
|
||||
end
|
||||
|
Reference in New Issue
Block a user