Fix commentary being created even if user says not to

This commit is contained in:
Toks
2015-06-03 21:37:41 -04:00
parent 854d587373
commit d1bf8eb03d

View File

@@ -123,7 +123,7 @@ class Upload < ActiveRecord::Base
post.distribute_files
if post.save
CurrentUser.increment!(:post_upload_count)
create_artist_commentary(post) if include_artist_commentary
create_artist_commentary(post) if include_artist_commentary?
ugoira_service.save_frame_data(post) if is_ugoira?
update_attributes(:status => "completed", :post_id => post.id)
else
@@ -532,4 +532,8 @@ class Upload < ActiveRecord::Base
def upload_as_pending?
as_pending == "1"
end
def include_artist_commentary?
include_artist_commentary == "1"
end
end