mirror of
https://github.com/danbee/micropub.git
synced 2025-03-04 08:59:13 +00:00
Return fully qualified URL
This commit is contained in:
parent
327cd81de7
commit
97e4eeeb25
@ -28,7 +28,7 @@ module Micropub
|
||||
post = Post.new(params)
|
||||
|
||||
if github.post!(post)
|
||||
headers "Location" => post.path
|
||||
headers "Location" => "#{ENV.fetch("SITE_URL")}#{post.path}"
|
||||
status 202
|
||||
else
|
||||
status 400
|
||||
|
||||
Loading…
Reference in New Issue
Block a user