mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-20 15:16:21 +00:00
Merge branch 'issue-10491' into panel.sutty.nl
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
commit
da4536c27b
1 changed files with 1 additions and 1 deletions
|
@ -44,6 +44,6 @@ class MetadataLocales < MetadataHasAndBelongsToMany
|
|||
def posts
|
||||
other_locales.map do |locale|
|
||||
site.posts(lang: locale).where(layout: post.layout.value)
|
||||
end.reduce(&:concat)
|
||||
end.reduce(&:concat) || PostRelation.new
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue