5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-20 17:16:21 +00:00

Merge branch 'issue-10491' into panel.sutty.nl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2023-03-24 11:50:56 -03:00
commit da4536c27b

View file

@ -44,6 +44,6 @@ class MetadataLocales < MetadataHasAndBelongsToMany
def posts def posts
other_locales.map do |locale| other_locales.map do |locale|
site.posts(lang: locale).where(layout: post.layout.value) site.posts(lang: locale).where(layout: post.layout.value)
end.reduce(&:concat) end.reduce(&:concat) || PostRelation.new
end end
end end