1
0
mirror of https://github.com/flarum/core.git synced 2025-07-28 12:10:51 +02:00

Remove post id from serializer attributes (#1775)

This commit is contained in:
Clark Winkelmann
2019-04-19 21:37:14 +02:00
committed by Franz Liedke
parent bf2c5a5564
commit ecc3b5e227

View File

@@ -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