Fix weird reference to "owner" column in Post::getOwnerPost

This commit is contained in:
Celestora 2021-11-17 18:27:11 +02:00
parent 150061840d
commit b1fbb7560c

View file

@ -97,7 +97,7 @@ class Post extends Postable
function getOwnerPost(): int
{
return $this->getRecord()->owner;
return $this->getOwner(false)->getId();
}
function pin(): void