mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 06:06:22 +00:00
Merge branch 'issue-13244' of https://0xacab.org/sutty/sutty into production.panel.sutty.nl
This commit is contained in:
commit
4c7d1733ec
2 changed files with 4 additions and 3 deletions
|
@ -30,8 +30,8 @@ PostService = Struct.new(:site, :usuarie, :post, :params, keyword_init: true) do
|
|||
|
||||
# Devolver el post aunque no se haya salvado para poder rescatar los
|
||||
# errores
|
||||
post
|
||||
auto_publish!
|
||||
post
|
||||
end
|
||||
|
||||
# Crear un post anónimo, con opciones más limitadas. No usamos post.
|
||||
|
@ -44,8 +44,8 @@ PostService = Struct.new(:site, :usuarie, :post, :params, keyword_init: true) do
|
|||
params[:draft] = true
|
||||
|
||||
commit(action: :created, add: files) if post.update(anon_post_params)
|
||||
post
|
||||
auto_publish!
|
||||
post
|
||||
end
|
||||
|
||||
def update
|
||||
|
@ -69,8 +69,8 @@ PostService = Struct.new(:site, :usuarie, :post, :params, keyword_init: true) do
|
|||
|
||||
# Devolver el post aunque no se haya salvado para poder rescatar los
|
||||
# errores
|
||||
post
|
||||
auto_publish!
|
||||
post
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
|
|
@ -44,6 +44,7 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
|
|||
deploy
|
||||
end
|
||||
|
||||
auto_publish!
|
||||
site
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue