mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 22:06:22 +00:00
fix: corregido parametro de job #13244
This commit is contained in:
parent
d3e5324687
commit
ecc4224d0a
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ module AutoPublishConcern
|
|||
|
||||
included do
|
||||
def auto_publish!
|
||||
DeployJob.perform_later(site.id) if site.auto_publish?
|
||||
DeployJob.perform_later(site) if site.auto_publish?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -31,7 +31,7 @@ PostService = Struct.new(:site, :usuarie, :post, :params, keyword_init: true) do
|
|||
# Crear un post anónimo, con opciones más limitadas. No usamos post.
|
||||
def create_anonymous
|
||||
# XXX: Confiamos en el parámetro de idioma porque estamos
|
||||
# verificándolos extend ActiveSupport::Concernn Site#posts
|
||||
# verificándolos en Site#posts
|
||||
self.post = site.posts(lang: locale)
|
||||
.build(layout: layout)
|
||||
# Los artículos anónimos siempre son borradores
|
||||
|
|
Loading…
Reference in a new issue