From 726bae8f0c16d645dff2d2c1f515be29c69c71b0 Mon Sep 17 00:00:00 2001 From: Roman Rizzi Date: Fri, 4 Sep 2020 17:24:40 -0300 Subject: [PATCH] DEV: Pass the for_export flag to the before_upload_creation event (#10599) --- lib/upload_creator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/upload_creator.rb b/lib/upload_creator.rb index b0e041a238..991c315177 100644 --- a/lib/upload_creator.rb +++ b/lib/upload_creator.rb @@ -128,7 +128,7 @@ class UploadCreator add_metadata! return @upload unless @upload.save - DiscourseEvent.trigger(:before_upload_creation, @file, is_image) + DiscourseEvent.trigger(:before_upload_creation, @file, is_image, @opts[:for_export]) # store the file and update its url File.open(@file.path) do |f|