mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 05:16:21 +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_code_of_conduct &&
|
||||
add_privacy_policy &&
|
||||
site.index_posts! &&
|
||||
deploy
|
||||
end
|
||||
|
||||
if site.persisted?
|
||||
site.index_posts!
|
||||
auto_publish!
|
||||
end
|
||||
|
||||
site
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue