1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

Expose creation time in flag serializer

Fixes flarum/core#651.
This commit is contained in:
Franz Liedke
2016-01-20 21:06:37 +01:00
parent c52d32fbd0
commit 301ff7e8b2

View File

@@ -30,6 +30,7 @@ class FlagSerializer extends AbstractSerializer
'type' => $flag->type, 'type' => $flag->type,
'reason' => $flag->reason, 'reason' => $flag->reason,
'reasonDetail' => $flag->reason_detail, 'reasonDetail' => $flag->reason_detail,
'time' => $this->formatDate($flag->time),
]; ];
} }