Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
tadhgboyle committed Mar 2, 2023
1 parent 42efeaa commit 3ca3e3f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions modules/Core/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,9 @@ public function onPageLoad(User $user, Pages $pages, Cache $cache, Smarty $smart
return DB::getInstance()->get('user_profile_wall_posts_reactions', ['user_id', $user->data()->id])->results();
});
ReactionsProfileWidget::addRecievedCollector(static function (User $user) {
return DB::getInstance()->query(
'SELECT r.reaction_id FROM nl2_user_profile_wall_posts_reactions r JOIN nl2_user_profile_wall_posts w ON r.post_id = w.id WHERE w.author_id = ?', [
$user->data()->id
])->results();
return DB::getInstance()->query('SELECT r.reaction_id FROM nl2_user_profile_wall_posts_reactions r JOIN nl2_user_profile_wall_posts w ON r.post_id = w.id WHERE w.author_id = ?', [
$user->data()->id
])->results();
});
}

Expand Down

0 comments on commit 3ca3e3f

Please sign in to comment.