minor improvement
This commit is contained in:
parent
c234ffec4f
commit
896cd533b4
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ class PackagesController < ApplicationController
|
||||||
# Check that this screenshot is not a duplicate for this package
|
# Check that this screenshot is not a duplicate for this package
|
||||||
if @package.screenshots.where(image_fingerprint: new_screenshot.image_fingerprint).any?
|
if @package.screenshots.where(image_fingerprint: new_screenshot.image_fingerprint).any?
|
||||||
Log.log "Duplicate image with fingerprint #{new_screenshot.image_fingerprint} found. Rejecting."
|
Log.log "Duplicate image with fingerprint #{new_screenshot.image_fingerprint} found. Rejecting."
|
||||||
all_errors << "Your file #{img.original_filename} is a duplicate."
|
all_errors << "Your file #{img.original_filename} is a duplicate. Sorry."
|
||||||
else
|
else
|
||||||
# Can the upload get approved automatically?
|
# Can the upload get approved automatically?
|
||||||
if user_signed_in?
|
if user_signed_in?
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue