mirror of
https://github.com/flarum/core.git
synced 2025-10-20 03:06:07 +02:00
Wrap column names; use whereColumn where possible
This commit is contained in:
@@ -51,7 +51,7 @@ class DiscussionRepository
|
||||
{
|
||||
return Discussion::leftJoin('discussions_users', 'discussions_users.discussion_id', '=', 'discussions.id')
|
||||
->where('user_id', $user->id)
|
||||
->whereRaw('last_read_post_number >= last_post_number')
|
||||
->whereColumn('last_read_post_number', '>=', 'last_post_number')
|
||||
->pluck('id')
|
||||
->all();
|
||||
}
|
||||
|
Reference in New Issue
Block a user