Fix commentary being created even if user says not to
This commit is contained in:
@@ -123,7 +123,7 @@ class Upload < ActiveRecord::Base
|
|||||||
post.distribute_files
|
post.distribute_files
|
||||||
if post.save
|
if post.save
|
||||||
CurrentUser.increment!(:post_upload_count)
|
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?
|
ugoira_service.save_frame_data(post) if is_ugoira?
|
||||||
update_attributes(:status => "completed", :post_id => post.id)
|
update_attributes(:status => "completed", :post_id => post.id)
|
||||||
else
|
else
|
||||||
@@ -532,4 +532,8 @@ class Upload < ActiveRecord::Base
|
|||||||
def upload_as_pending?
|
def upload_as_pending?
|
||||||
as_pending == "1"
|
as_pending == "1"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def include_artist_commentary?
|
||||||
|
include_artist_commentary == "1"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user