mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-03-25 09:05:47 +00:00
remove redundant param, just use env
This commit is contained in:
parent
732da17859
commit
8d0036ddb0
1 changed files with 1 additions and 1 deletions
|
|
@ -206,7 +206,7 @@ post '/posts/drafts' do
|
|||
id, title, body, link = @fields.values_at('id', 'title', 'body', 'link')
|
||||
begin
|
||||
if post = blog.create_post(title, body, link, id: id, draft: true)
|
||||
if @fields['publish'] == 'true'
|
||||
if @fields['env']
|
||||
post = blog.publish_post(post)
|
||||
blog.publish(@fields['env'])
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue