mirror of
https://0xacab.org/sutty/sutty
synced 2025-02-24 05:31:48 +00:00
Merge branch 'jekyll-service' into panel.sutty.nl
This commit is contained in:
commit
db1e9867af
2 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ class MetadataFile < MetadataTemplate
|
|||
errors << I18n.t("metadata.#{type}.site_invalid") if site.invalid?
|
||||
errors << I18n.t("metadata.#{type}.path_required") if path_missing?
|
||||
errors << I18n.t("metadata.#{type}.no_file_for_description") if no_file_for_description?
|
||||
errors << I18n.t("metadata.#{type}.attachment_missing") unless static_file
|
||||
errors << I18n.t("metadata.#{type}.attachment_missing") if path? && !static_file
|
||||
|
||||
errors.compact!
|
||||
errors.empty?
|
||||
|
|
|
@ -5,7 +5,7 @@ class MetadataImage < MetadataFile
|
|||
def validate
|
||||
super
|
||||
|
||||
errors << I18n.t('metadata.image.not_an_image') unless image?
|
||||
errors << I18n.t('metadata.image.not_an_image') unless path? && image?
|
||||
|
||||
errors.compact!
|
||||
errors.empty?
|
||||
|
|
Loading…
Reference in a new issue