mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Ignore empty string websites on DFC API
This commit is contained in:
@@ -23,7 +23,7 @@ class EnterpriseBuilder < DfcBuilder
|
||||
socialMedias: SocialMediaBuilder.social_medias(enterprise),
|
||||
|
||||
# The model strips the protocol and we need to add it:
|
||||
websites: [enterprise.website].compact.map { |url| "https://#{url}" },
|
||||
websites: [enterprise.website].compact_blank.map { |url| "https://#{url}" },
|
||||
).tap do |e|
|
||||
add_ofn_property(e, "ofn:long_description", enterprise.long_description)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user