Cruft
This commit is contained in:
parent
1d364de8c8
commit
107f2a8dbe
1 changed files with 0 additions and 2 deletions
|
|
@ -68,8 +68,6 @@ class PackagesController < ApplicationController
|
||||||
# Log.log "Uploaded img=#{img.path}"
|
# Log.log "Uploaded img=#{img.path}"
|
||||||
new_screenshot = @package.screenshots.new(simage: img)
|
new_screenshot = @package.screenshots.new(simage: img)
|
||||||
|
|
||||||
# BUG: ActiveStorage will accept the broken PNG during upload!
|
|
||||||
|
|
||||||
# Check if the image was valid
|
# Check if the image was valid
|
||||||
if new_screenshot.valid?
|
if new_screenshot.valid?
|
||||||
new_screenshot.uploaderhash = session.id.to_s
|
new_screenshot.uploaderhash = session.id.to_s
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue