mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-23 08:56:21 +00:00
fix: encontrar el post relacionado por su indexacion
This commit is contained in:
parent
6f9fe8fdbc
commit
9cb2850a13
1 changed files with 1 additions and 1 deletions
|
@ -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ó)
|
||||
|
|
Loading…
Reference in a new issue