mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 02:25:37 +08: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