mirror of
https://github.com/flarum/core.git
synced 2025-10-17 17:56:14 +02:00
fixed more attributes to match beta 8
This commit is contained in:
@@ -176,7 +176,7 @@ class Discussion extends AbstractModel
|
||||
public function hide(User $actor = null)
|
||||
{
|
||||
if (! $this->hidden_at) {
|
||||
$this->hidden_at = time();
|
||||
$this->hidden_at = Carbon::now();
|
||||
$this->hidden_user_id = $actor ? $actor->id : null;
|
||||
|
||||
$this->raise(new Hidden($this));
|
||||
|
Reference in New Issue
Block a user