mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 14:26:22 +00:00
fix: encontrar la licencia por el post indexado
This commit is contained in:
parent
7df1af2a54
commit
6f9fe8fdbc
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
|
||||||
return true if site.licencia.custom?
|
return true if site.licencia.custom?
|
||||||
|
|
||||||
with_all_locales do |locale|
|
with_all_locales do |locale|
|
||||||
post = site.posts(lang: locale).find_by(layout: 'license')
|
post = site.indexed_posts(locale: locale).find_by(layout: 'license')&.post
|
||||||
|
|
||||||
change_licencia(post: post) if post
|
change_licencia(post: post) if post
|
||||||
end.compact.map(&:valid?).all?
|
end.compact.map(&:valid?).all?
|
||||||
|
|
Loading…
Reference in a new issue