]> BookStack Code Mirror - bookstack/blobdiff - app/References/ReferenceFetcher.php
Copying: Fixed issue with non-page links to page permalinks
[bookstack] / app / References / ReferenceFetcher.php
index 1c9664f45a9979d8c5e88627b4bb6eaa7547dd1a..8588c6e2c8ef3ab16dd8464f36dc42e44957f42d 100644 (file)
@@ -20,10 +20,10 @@ class ReferenceFetcher
      * Query and return the references pointing to the given entity.
      * Loads the commonly required relations while taking permissions into account.
      */
-    public function getReferencesToEntity(Entity $entity): Collection
+    public function getReferencesToEntity(Entity $entity, bool $withContents = false): Collection
     {
         $references = $this->queryReferencesToEntity($entity)->get();
-        $this->mixedEntityListLoader->loadIntoRelations($references->all(), 'from', true);
+        $this->mixedEntityListLoader->loadIntoRelations($references->all(), 'from', false, $withContents);
 
         return $references;
     }