mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
Include user in post creation response
This commit is contained in:
parent
fbc63df63c
commit
827d6ca0e0
|
@ -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