From 0a41a680b3dac271b0e1e3dc9601f29bcbcd628a Mon Sep 17 00:00:00 2001 From: taka-tuos Date: Mon, 9 Oct 2017 15:36:58 +0900 Subject: [PATCH] =?UTF-8?q?PhotoMixin=E3=81=AEWindows=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/plugin/photo/model/photo.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/plugin/photo/model/photo.rb b/core/plugin/photo/model/photo.rb index b954ead2..81911847 100644 --- a/core/plugin/photo/model/photo.rb +++ b/core/plugin/photo/model/photo.rb @@ -21,7 +21,7 @@ module Plugin::Photo when String if uri.start_with?('http') photos[uri.hash] ||= new(perma_link: uri) - elsif uri.start_with?('/') + elsif uri.start_with?('/') || uri.start_with?('A:','B:','C:','D:','E:','F:','G:','H:','I:','J:','K:','L:','M:','N:','O:','P:','Q:','R:','S:','T:','U:','V:','W:','X:','Y:','Z:') uri = Retriever::URI.new(scheme: 'file', path: uri) photos[uri.hash] ||= new(perma_link: uri) end -- 2.14.2.windows.2