Phosphorum\Models\Posts::getRecentUsers PHP Method

getRecentUsers() public method

public getRecentUsers ( ) : array
return array
    public function getRecentUsers()
    {
        $users = [$this->user->id => [$this->user->login, $this->user->email]];
        foreach ($this->getReplies(['order' => 'created_at DESC', 'limit' => 3]) as $reply) {
            if (!isset($users[$reply->user->id])) {
                $users[$reply->user->id] = [$reply->user->login, $reply->user->email];
            }
        }
        return $users;
    }