Fix #4377: Save commentary by default.

Remove the "Include artist commentary" checkbox. Commentary is included
by default unless the commentary fields are blank.
This commit is contained in:
evazion
2020-04-04 00:39:58 -05:00
parent c6354b2504
commit 743b6f0854
5 changed files with 20 additions and 6 deletions

View File

@@ -233,6 +233,10 @@ class Upload < ApplicationRecord
as_pending.to_s.truthy?
end
def has_commentary?
artist_commentary_title.present? || artist_commentary_desc.present? || translated_commentary_title.present? || translated_commentary_desc.present?
end
def self.available_includes
[:uploader, :post]
end