From 0cd2895456f953ef871e10421361578b6c8d4add Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 1 Feb 2018 20:31:49 -0600 Subject: fix image url replacement for blank urls (#8184) --- app/post.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/post.go') diff --git a/app/post.go b/app/post.go index bf4725e77..6890d1dd9 100644 --- a/app/post.go +++ b/app/post.go @@ -890,7 +890,7 @@ func (a *App) ImageProxyAdder() func(string) string { } return func(url string) string { - if strings.HasPrefix(url, proxyURL) { + if url == "" || strings.HasPrefix(url, proxyURL) { return url } -- cgit v1.2.3-1-g7c22