mirror of
https://github.com/discourse/discourse.git
synced 2025-04-23 05:10:30 +08:00
DEV: Remove redundant case in import script (#22882)
This commit is contained in:
parent
7ecaf6295d
commit
26a8e7da28
@ -994,11 +994,7 @@ SQL
|
|||||||
end
|
end
|
||||||
|
|
||||||
if l["href"]
|
if l["href"]
|
||||||
if permalink && permalink.target_url
|
l["href"] = permalink.target_url if permalink && permalink.target_url
|
||||||
l["href"] = permalink.target_url
|
|
||||||
elsif l["href"] =~ %r{^/gartner/attachments/gartner/([^.]*).(\w*)}
|
|
||||||
linked_upload = "#{$1}.#{$2}"
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
elsif l["src"]
|
elsif l["src"]
|
||||||
# we need an upload here
|
# we need an upload here
|
||||||
|
Loading…
x
Reference in New Issue
Block a user