From c5420ef7df9fd19650f3b9cb2bc4f853ad3ebf93 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 14 May 2015 22:35:10 +0930 Subject: [PATCH] Include user in post creation response --- src/Api/Actions/Posts/CreateAction.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Api/Actions/Posts/CreateAction.php b/src/Api/Actions/Posts/CreateAction.php index 76ea2249d..2ee4c8ce6 100644 --- a/src/Api/Actions/Posts/CreateAction.php +++ b/src/Api/Actions/Posts/CreateAction.php @@ -21,6 +21,10 @@ class CreateAction extends BaseCreateAction */ public static $serializer = 'Flarum\Api\Serializers\PostSerializer'; + public static $include = [ + 'user' => true + ]; + /** * Instantiate the action. *