X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/18ae67a1385945ebe7db199e7ede0c90525d9943..refs/pull/5592/head:/app/Activity/Tools/EntityWatchers.php diff --git a/app/Activity/Tools/EntityWatchers.php b/app/Activity/Tools/EntityWatchers.php index 38ba8c591..1ab53cb1c 100644 --- a/app/Activity/Tools/EntityWatchers.php +++ b/app/Activity/Tools/EntityWatchers.php @@ -32,6 +32,11 @@ class EntityWatchers return $this->watchers; } + public function isUserIgnoring(int $userId): bool + { + return in_array($userId, $this->ignorers); + } + protected function build(): void { $watches = $this->getRelevantWatches();