mirror of
https://github.com/danbee/micropub.git
synced 2025-03-04 08:59:13 +00:00
Let's not assume a published time has been passed
This commit is contained in:
parent
3365485720
commit
4c56ac418f
@ -26,7 +26,11 @@ class Post
|
|||||||
end
|
end
|
||||||
|
|
||||||
def published
|
def published
|
||||||
@_published ||= Date.parse(params["published"])
|
if params["published"]
|
||||||
|
DateTime.parse(params["published"])
|
||||||
|
else
|
||||||
|
DateTime.now
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def categories
|
def categories
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user