mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 07:46:22 +00:00
fix: solo indexar y publicar después de crear
closes #17534 closes #17533
This commit is contained in:
parent
662570c4cc
commit
ce4f9937fb
1 changed files with 5 additions and 2 deletions
|
@ -38,11 +38,14 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
|
||||||
add_licencias &&
|
add_licencias &&
|
||||||
add_code_of_conduct &&
|
add_code_of_conduct &&
|
||||||
add_privacy_policy &&
|
add_privacy_policy &&
|
||||||
site.index_posts! &&
|
|
||||||
deploy
|
deploy
|
||||||
end
|
end
|
||||||
|
|
||||||
auto_publish!
|
if site.persisted?
|
||||||
|
site.index_posts!
|
||||||
|
auto_publish!
|
||||||
|
end
|
||||||
|
|
||||||
site
|
site
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue