public function isDoublePostBy(User $user) { if ($user === null) { return false; } if ($user->user_id !== $this->topic_last_poster_id) { return false; } if ($user->user_id === $this->topic_poster) { $minHours = config('osu.forum.double_post_time.author'); } else { $minHours = config('osu.forum.double_post_time.normal'); } return $this->topic_last_post_time->copy()->addHours($minHours)->isFuture(); }