diff --git a/app/views/posts/attribute_ro/_related_posts.haml b/app/views/posts/attribute_ro/_related_posts.haml index c43b589e..6014e160 100644 --- a/app/views/posts/attribute_ro/_related_posts.haml +++ b/app/views/posts/attribute_ro/_related_posts.haml @@ -3,7 +3,7 @@ %td %ul{ dir: dir, lang: locale } - metadata.value.each do |v| - - p = site.posts(lang: post.lang.value).find(v, uuid: true) + - p = site.indexed_posts(locale: post.lang.value).find_by(post_id: v)&.post -# XXX: Ignorar todos los posts no encontrados (ej: fueron borrados o el uuid cambiĆ³)