lib/wcc/contentful/store/cdn_adapter.rb in wcc-contentful-1.0.8 vs lib/wcc/contentful/store/cdn_adapter.rb in wcc-contentful-1.1.0
- old
+ new
@@ -156,10 +156,11 @@
end
def resolve_includes(entry, depth)
return entry unless entry && depth && depth > 0
- WCC::Contentful::LinkVisitor.new(entry, :Link, :Asset, depth: depth - 1).map! do |val|
+ # Dig links out of response.includes and insert them into the entry
+ WCC::Contentful::LinkVisitor.new(entry, :Link, depth: depth - 1).map! do |val|
resolve_link(val)
end
end
def resolve_link(val)