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
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
parent
40f5eca7ab
commit
8350bfdfeb
1 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue