mirror of
https://github.com/flarum/core.git
synced 2025-08-17 13:54:18 +02:00
Rename post.time
This commit is contained in:
@@ -39,7 +39,7 @@ class BasicPostSerializer extends AbstractSerializer
|
||||
$attributes = [
|
||||
'id' => (int) $post->id,
|
||||
'number' => (int) $post->number,
|
||||
'time' => $this->formatDate($post->created_at),
|
||||
'createdAt' => $this->formatDate($post->created_at),
|
||||
'contentType' => $post->type
|
||||
];
|
||||
|
||||
|
@@ -91,7 +91,7 @@ class PostReplyHandler
|
||||
$command->ipAddress
|
||||
);
|
||||
|
||||
if ($actor->isAdmin() && ($time = array_get($command->data, 'attributes.time'))) {
|
||||
if ($actor->isAdmin() && ($time = array_get($command->data, 'attributes.createdAt'))) {
|
||||
$post->created_at = new Carbon($time);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user