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

fix: no leer los posts al obtener relaciones
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
f 2023-10-20 12:23:57 -03:00
parent 40f5eca7ab
commit 8350bfdfeb
No known key found for this signature in database

View file

@ -2,10 +2,9 @@
%th= post_label_t(attribute, post: post) %th= post_label_t(attribute, post: post)
%td %td
%ul{ dir: dir, lang: locale } %ul{ dir: dir, lang: locale }
- metadata.value.each do |v| - site.indexed_posts.where(locale: post.lang.value, post_id: metadata.value).find_each do |p|
- p = site.indexed_posts(locale: post.lang.value).find_by(post_id: v)&.post
-# -#
XXX: Ignorar todos los posts no encontrados (ej: fueron XXX: Ignorar todos los posts no encontrados (ej: fueron
borrados o el uuid cambió) borrados o el uuid cambió)
- next unless p - next unless p
%li= link_to p.title.value, site_post_path(site, p.id) %li= link_to p.title, site_post_path(site, p.path)