VKAPI: Add profiles and groups verification in Newsfeed.get and Wall.get

This commit is contained in:
Dmitry Tretyakov 2023-04-29 23:33:58 +07:00
parent 725e68d0e5
commit eb227db6a9

View file

@ -162,7 +162,8 @@ final class Wall extends VKAPIRequestHandler
"screen_name" => $user->getShortCode(),
"photo_50" => $user->getAvatarUrl(),
"photo_100" => $user->getAvatarUrl(),
"online" => $user->isOnline()
"online" => $user->isOnline(),
"verified" => $user->isVerified()
];
}
@ -177,6 +178,7 @@ final class Wall extends VKAPIRequestHandler
"photo_50" => $group->getAvatarUrl(),
"photo_100" => $group->getAvatarUrl(),
"photo_200" => $group->getAvatarUrl(),
"verified" => $group->isVerified()
];
}
@ -334,7 +336,8 @@ final class Wall extends VKAPIRequestHandler
"screen_name" => $user->getShortCode(),
"photo_50" => $user->getAvatarUrl(),
"photo_100" => $user->getAvatarUrl(),
"online" => $user->isOnline()
"online" => $user->isOnline(),
"verified" => $user->isVerified()
];
}
@ -349,6 +352,7 @@ final class Wall extends VKAPIRequestHandler
"photo_50" => $group->getAvatarUrl(),
"photo_100" => $group->getAvatarUrl(),
"photo_200" => $group->getAvatarUrl(),
"verified" => $group->isVerified()
];
}