mirror of
https://github.com/openvk/openvk
synced 2024-11-14 19:19:14 +03:00
Compare commits
2 commits
93f225dcfc
...
b58adba4f7
Author | SHA1 | Date | |
---|---|---|---|
b58adba4f7 | |||
|
9100a83044 |
1 changed files with 4 additions and 1 deletions
|
@ -5,8 +5,11 @@ use openvk\Web\Models\Entities\User;
|
|||
|
||||
trait TIgnorable
|
||||
{
|
||||
function isIgnoredBy(User $user): bool
|
||||
function isIgnoredBy(User $user = NULL): bool
|
||||
{
|
||||
if(!$user)
|
||||
return false;
|
||||
|
||||
$ctx = DatabaseConnection::i()->getContext();
|
||||
$data = [
|
||||
"owner" => $user->getId(),
|
||||
|
|
Loading…
Reference in a new issue