From b1fbb7560c62711a6b81b66e3cfcc7f9442bfd16 Mon Sep 17 00:00:00 2001 From: Celestora Date: Wed, 17 Nov 2021 18:27:11 +0200 Subject: [PATCH] Fix weird reference to "owner" column in Post::getOwnerPost --- Web/Models/Entities/Post.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Models/Entities/Post.php b/Web/Models/Entities/Post.php index 7d0cc486..1d82d81a 100644 --- a/Web/Models/Entities/Post.php +++ b/Web/Models/Entities/Post.php @@ -97,7 +97,7 @@ class Post extends Postable function getOwnerPost(): int { - return $this->getRecord()->owner; + return $this->getOwner(false)->getId(); } function pin(): void