]> git.mxchange.org Git - friendica.git/blobdiff - src/Moderation/Factory/Report.php
spelling: mismatches
[friendica.git] / src / Moderation / Factory / Report.php
index bbcbe8eb12461a9266f534a1ab1ede2b744540c1..7cf4009705ef385d9f01885d7807eac7d2e0ee2f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -40,6 +40,7 @@ class Report extends \Friendica\BaseFactory implements ICanCreateFromTableRow
                        new \DateTime($row['created'] ?? 'now', new \DateTimeZone('UTC')),
                        $row['comment'],
                        $row['category'],
+                       $row['rules'],
                        $row['forward'],
                        $postUriIds,
                        $row['uid'],
@@ -61,7 +62,7 @@ class Report extends \Friendica\BaseFactory implements ICanCreateFromTableRow
         * @return Entity\Report
         * @throws \Exception
         */
-       public function createFromReportsRequest(int $reporterId, int $cid, string $comment = '', string $category = null, bool $forward = false, array $postUriIds = [], int $uid = null): Entity\Report
+       public function createFromReportsRequest(int $reporterId, int $cid, string $comment = '', string $category = null, string $rules = '', bool $forward = false, array $postUriIds = [], int $uid = null): Entity\Report
        {
                return new Entity\Report(
                        $reporterId,
@@ -69,6 +70,7 @@ class Report extends \Friendica\BaseFactory implements ICanCreateFromTableRow
                        new \DateTime('now', new \DateTimeZone('UTC')),
                        $comment,
                        $category,
+                       $rules,
                        $forward,
                        $postUriIds,
                        $uid,