diff --git a/Web/Models/Entities/Postable.php b/Web/Models/Entities/Postable.php index 00b132b1..27c406fc 100644 --- a/Web/Models/Entities/Postable.php +++ b/Web/Models/Entities/Postable.php @@ -70,6 +70,11 @@ abstract class Postable extends Attachable { return (new Comments)->getCommentsCountByTarget($this); } + + function getLastComments() + { + return (new Comments)->getLastCommentsByTarget($this); + } function getLikesCount(): int {