mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
fields blacklisted_by_me, blacklisted
This commit is contained in:
parent
9afebf7d02
commit
504f50af9a
1 changed files with 14 additions and 0 deletions
|
@ -1418,6 +1418,20 @@ class User extends RowModel
|
||||||
case 'real_id':
|
case 'real_id':
|
||||||
$res->real_id = $this->getRealId();
|
$res->real_id = $this->getRealId();
|
||||||
break;
|
break;
|
||||||
|
case "blacklisted_by_me":
|
||||||
|
if(!$user) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$res->blacklisted_by_me = (int)$this->isBlacklistedBy($user);
|
||||||
|
break;
|
||||||
|
case "blacklisted":
|
||||||
|
if(!$user) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$res->blacklisted = (int)$user->isBlacklistedBy($this);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue