]> BookStack Code Mirror - bookstack/blobdiff - app/Activity/Tools/EntityWatchers.php
ZIP Imports: Added API examples, finished testing
[bookstack] / app / Activity / Tools / EntityWatchers.php
index 38ba8c591e444ac05162a09219e736ed7d808682..1ab53cb1ce0ba1ac13852ebb705b3febe049bd78 100644 (file)
@@ -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();