fix
This commit is contained in:
@@ -25,7 +25,7 @@ class Upload < ActiveRecord::Base
|
||||
md5_post = Post.find_by_md5(md5)
|
||||
if md5_post
|
||||
merge_tags(md5_post)
|
||||
raise "duplicate: #{post.id}"
|
||||
raise "duplicate: #{md5_post.id}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
<%= render "image" %>
|
||||
<%= render "post", :post => @post %>
|
||||
<%= render "sources/info", :source => @source %>
|
||||
|
||||
<%= form_for(@upload, :html => {:multipart => true, :class => "simple_form", :id => 'form'}) do |f| %>
|
||||
<div class="input">
|
||||
<%= f.label :file %>
|
||||
|
||||
Reference in New Issue
Block a user