]> git.mxchange.org Git - friendica.git/blobdiff - src/Moderation/Repository/Report.php
New user account type "Channel Relay"
[friendica.git] / src / Moderation / Repository / Report.php
index 4681ea3b980acdb39a1211dba20bcdef3f8ba5d9..6290f9014d38048d23447d292a4095c3f81618eb 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -48,7 +48,7 @@ final class Report extends \Friendica\BaseRepository
 
                $this->factory     = $factory;
                $this->postFactory = $postFactory;
-               $this->ruleFactory = $postFactory;
+               $this->ruleFactory = $ruleFactory;
        }
 
        public function selectOneById(int $lastInsertId): \Friendica\Moderation\Entity\Report
@@ -109,7 +109,7 @@ final class Report extends \Friendica\BaseRepository
                }
 
                $reportPosts = new Collection\Report\Posts(array_map([$this->postFactory, 'createFromTableRow'], $this->db->selectToArray('report-post', ['uri-id', 'status'], ['rid' => $condition['id'] ?? 0])));
-               $reportRules = new Collection\Report\Rules(array_map([$this->ruleFactory, 'createFromTableRow'], $this->db->selectToArray('report-rule', ['line-id', 'line-text'], ['rid' => $condition['id'] ?? 0])));
+               $reportRules = new Collection\Report\Rules(array_map([$this->ruleFactory, 'createFromTableRow'], $this->db->selectToArray('report-rule', ['line-id', 'text'], ['rid' => $condition['id'] ?? 0])));
 
                return $this->factory->createFromTableRow($fields, $reportPosts, $reportRules);
        }