バグ #1071 » 0001-PhotoMixin-Windows.patch
| core/plugin/photo/model/photo.rb | ||
|---|---|---|
|       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 | ||