diff --git a/framework/core/src/Core/Models/Discussion.php b/framework/core/src/Core/Models/Discussion.php index 1dd4f0523..eb3c72116 100755 --- a/framework/core/src/Core/Models/Discussion.php +++ b/framework/core/src/Core/Models/Discussion.php @@ -295,6 +295,11 @@ class Discussion extends Model */ public function stateFor(User $user) { + $loadedState = array_get($this->relations, 'state'); + if ($loadedState && $loadedState->user_id === $user->id) { + return $loadedState; + } + $state = $this->state($user)->first(); if (! $state) {