mirror of
https://github.com/openvk/openvk
synced 2024-11-14 19:19:14 +03:00
Compare commits
2 commits
6a1013ddf0
...
ac1e831dea
Author | SHA1 | Date | |
---|---|---|---|
|
ac1e831dea | ||
|
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