From 0f81a6a0c3d5960dcfecba43f92153581c19cbe0 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Tue, 30 Jan 2024 11:34:17 +0300 Subject: [PATCH] fix(reports): fix 500 error when trying to delete or ban user if it's not post --- Web/Models/Entities/Report.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Models/Entities/Report.php b/Web/Models/Entities/Report.php index 5487056f..1b36678c 100644 --- a/Web/Models/Entities/Report.php +++ b/Web/Models/Entities/Report.php @@ -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