mirror of
https://github.com/friendica/friendica
synced 2025-04-24 14:30:11 +00:00
Add Report Create module
WIP
This commit is contained in:
parent
76de49a25c
commit
c312d11dab
13 changed files with 510 additions and 3 deletions
|
@ -56,7 +56,7 @@ final class Report extends \Friendica\BaseRepository
|
|||
return $this->_selectOne(['id' => $lastInsertId]);
|
||||
}
|
||||
|
||||
public function save(\Friendica\Moderation\Entity\Report $Report)
|
||||
public function save(\Friendica\Moderation\Entity\Report $Report): \Friendica\Moderation\Entity\Report
|
||||
{
|
||||
$fields = [
|
||||
'reporter-id' => $Report->reporterCid,
|
||||
|
@ -95,7 +95,7 @@ final class Report extends \Friendica\BaseRepository
|
|||
$this->db->insert('report-rule', ['rid' => $newReportId, 'line-id' => $rule->lineId, 'text' => $rule->text]);
|
||||
}
|
||||
|
||||
$Report = $this->selectOneById($this->db->lastInsertId());
|
||||
$Report = $this->selectOneById($newReportId);
|
||||
}
|
||||
|
||||
return $Report;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue