5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-24 05:26:21 +00:00

fix: solo indexar y publicar después de crear

closes #17534

closes #17533
This commit is contained in:
f 2024-10-09 16:54:46 -03:00
parent 662570c4cc
commit ce4f9937fb
No known key found for this signature in database

View file

@ -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