mirror of
https://github.com/openvk/openvk
synced 2025-04-18 22:23:04 +03:00
задушнил
This commit is contained in:
parent
e4904347c4
commit
adb1ff4db3
1 changed files with 3 additions and 3 deletions
|
@ -12,17 +12,17 @@ class Faves
|
|||
{
|
||||
private $context;
|
||||
private $likes;
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->context = DatabaseConnection::i()->getContext();
|
||||
$this->context = DatabaseConnection::i()->getContext();
|
||||
$this->likes = $this->context->table("likes");
|
||||
}
|
||||
|
||||
private function fetchLikes(User $user, string $class = 'Post')
|
||||
{
|
||||
$fetch = $this->likes->where([
|
||||
"model" => "openvk\\Web\\Models\\Entities\\".$class,
|
||||
"model" => "openvk\\Web\\Models\\Entities\\" . $class,
|
||||
"origin" => $user->getRealId(),
|
||||
]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue