mirror of
https://github.com/flarum/framework.git
synced 2025-01-21 20:14:00 +08:00
Remove post id from serializer attributes (#1775)
This commit is contained in:
parent
bf2c5a5564
commit
ecc3b5e227
|
@ -37,7 +37,6 @@ class BasicPostSerializer extends AbstractSerializer
|
|||
}
|
||||
|
||||
$attributes = [
|
||||
'id' => (int) $post->id,
|
||||
'number' => (int) $post->number,
|
||||
'createdAt' => $this->formatDate($post->created_at),
|
||||
'contentType' => $post->type
|
||||
|
|
Loading…
Reference in New Issue
Block a user