mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
Include user in post creation response
This commit is contained in:
parent
9284db5076
commit
c5420ef7df
|
@ -21,6 +21,10 @@ class CreateAction extends BaseCreateAction
|
|||
*/
|
||||
public static $serializer = 'Flarum\Api\Serializers\PostSerializer';
|
||||
|
||||
public static $include = [
|
||||
'user' => true
|
||||
];
|
||||
|
||||
/**
|
||||
* Instantiate the action.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user