]> git.mxchange.org Git - friendica.git/commitdiff
Fix db error: missing column name 'line-text'
authorSteffen K9 <admin@libranet.de>
Tue, 11 Jul 2023 20:37:45 +0000 (22:37 +0200)
committerGitHub <noreply@github.com>
Tue, 11 Jul 2023 20:37:45 +0000 (22:37 +0200)
See https://github.com/friendica/friendica/issues/13277#issuecomment-1631359293

src/Moderation/Repository/Report.php

index 4681ea3b980acdb39a1211dba20bcdef3f8ba5d9..e405f780812b062073827fc3198e50dd2e25b1d1 100644 (file)
@@ -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);
        }