add openvk native support

This commit is contained in:
ZAZiOs 2025-06-11 23:41:12 +03:00
parent b90a0fa013
commit 7cde47f2ac
2 changed files with 4 additions and 0 deletions

View file

@ -176,11 +176,13 @@ class Post extends Postable
$platform = $this->getRecord()->api_source_name;
if ($forAPI) {
switch ($platform) {
case 'OpenVK Native':
case 'openvk_refresh_android':
case 'openvk_legacy_android':
return 'android';
break;
case 'OpenVK Native iOS':
case 'openvk_ios':
case 'openvk_legacy_ios':
return 'iphone';

View file

@ -971,11 +971,13 @@ class User extends RowModel
$platform = $this->getRecord()->client_name;
if ($forAPI) {
switch ($platform) {
case 'OpenVK Native':
case 'openvk_refresh_android':
case 'openvk_legacy_android':
return 'android';
break;
case 'OpenVK Native iOS':
case 'openvk_ios':
case 'openvk_legacy_ios':
return 'iphone';