mirror of
https://github.com/flarum/framework.git
synced 2025-01-22 08:34: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 = [
|
$attributes = [
|
||||||
'id' => (int) $post->id,
|
|
||||||
'number' => (int) $post->number,
|
'number' => (int) $post->number,
|
||||||
'createdAt' => $this->formatDate($post->created_at),
|
'createdAt' => $this->formatDate($post->created_at),
|
||||||
'contentType' => $post->type
|
'contentType' => $post->type
|
||||||
|
|
Loading…
Reference in New Issue
Block a user