mirror of
https://github.com/flarum/core.git
synced 2025-10-19 02:36:08 +02:00
fixed the created_at issue from the policy caused by the setStartPost setting created_at to null
This commit is contained in:
@@ -30,10 +30,18 @@ class StartDiscussion
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @param User $actor The user authoring the discussion.
|
||||
* @param array $data The discussion attributes.
|
||||
* The current ip address of the actor.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public function __construct(User $actor, array $data, $ipAddress)
|
||||
public $ipAddress;
|
||||
|
||||
/**
|
||||
* @param User $actor The user authoring the discussion.
|
||||
* @param array $data The discussion attributes.
|
||||
* @param string $ipAddress The current ip address of the actor.
|
||||
*/
|
||||
public function __construct(User $actor, array $data, string $ipAddress)
|
||||
{
|
||||
$this->actor = $actor;
|
||||
$this->data = $data;
|
||||
|
Reference in New Issue
Block a user