Skip to content

Commit

Permalink
задушнил
Browse files Browse the repository at this point in the history
  • Loading branch information
mrilyew committed Mar 5, 2025
1 parent e490434 commit adb1ff4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Web/Models/Repositories/Faves.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
]);

Expand Down

0 comments on commit adb1ff4

Please sign in to comment.