Skip to content

Commit

Permalink
Fix one thing in processor.image_server_data
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed May 23, 2024
1 parent 66b696c commit 31d4eb4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/models/image/processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ def image_server_data
MO.image_sources.each do |server, specs|
next unless specs[:write]

uri = Addressable::URI.parse(specs[:write])
url = format(specs[:write], root: MO.root)
parsed = Addressable::URI.parse(url)
data[server] = {
url: format(specs[:write], root: MO.root),
type: uri.scheme,
path: uri.authority + uri.path,
url: url,
type: parsed.scheme,
path: parsed.authority + parsed.path,
subdirs: specs[:sizes] || IMAGE_SUBDIRS
}
end
Expand Down

0 comments on commit 31d4eb4

Please sign in to comment.