mirror of
https://github.com/openvk/openvk
synced 2024-12-22 16:42:32 +03:00
fix(reports): fix 500 error when trying to delete or ban user if it's not post
This commit is contained in:
parent
73ee4f5abf
commit
0f81a6a0c3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue