mirror of
https://github.com/flarum/framework.git
synced 2025-04-25 14:14:03 +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…
x
Reference in New Issue
Block a user