|
@@ -236,7 +236,8 @@ sub add ($self, @posts) {
|
|
|
$post->{id} //= UUID::Tiny::create_uuid_as_string(UUID::Tiny::UUID_V1, UUID::Tiny::UUID_NS_DNS);
|
|
$post->{id} //= UUID::Tiny::create_uuid_as_string(UUID::Tiny::UUID_V1, UUID::Tiny::UUID_NS_DNS);
|
|
|
$post->{local_href} //= "/posts/$post->{id}";
|
|
$post->{local_href} //= "/posts/$post->{id}";
|
|
|
$post->{method} //= 'GET';
|
|
$post->{method} //= 'GET';
|
|
|
- $post->{created} = time();
|
|
|
|
|
|
|
+ $post->{callback} //= 'Trog::Routes::HTML::posts';
|
|
|
|
|
+ $post->{created} = time();
|
|
|
my @existing_posts = $self->get( id => $post->{id} );
|
|
my @existing_posts = $self->get( id => $post->{id} );
|
|
|
if (@existing_posts) {
|
|
if (@existing_posts) {
|
|
|
my $existing_post = $existing_posts[0];
|
|
my $existing_post = $existing_posts[0];
|