fix(reports): fix 500 error when trying to delete or ban user if it's not post

This commit is contained in:
veselcraft 2024-01-30 11:34:17 +03:00
parent 73ee4f5abf
commit 0f81a6a0c3
No known key found for this signature in database
GPG key ID: 9CF0B42766CCF7BA

View file

@ -80,7 +80,7 @@ class Report extends RowModel
function getAuthor(): RowModel
{
return (new Posts)->get($this->getContentId())->getOwner();
return $this->getContentObject()->getOwner();
}
function getReportAuthor(): User