[Seeding] Fix uploader not being set

This broke seeding altogether, introduced in a28466bd
This commit is contained in:
Earlopain 2021-04-30 23:50:22 +02:00
parent 4b27ebb6f9
commit 2a15947696
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897

View File

@ -58,6 +58,8 @@ unless Rails.env.test?
md5 = Digest::MD5.hexdigest(data)
service = UploadService.new({
uploader_id: CurrentUser.id,
uploader_ip_addr: CurrentUser.ip_addr,
file: file,
tag_string: post["tags"].values.flatten.join(" "),
source: post["sources"].join("\n"),