mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
fix build
This commit is contained in:
@@ -87,6 +87,8 @@ class Upload < ActiveRecord::Base
|
||||
|
||||
path = uri.path[/(\/original\/\dX\/[\/\.\w]+)/, 1]
|
||||
|
||||
return if path.blank?
|
||||
|
||||
Upload.find_by("url LIKE ?", "%#{path}")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user