mirror of
https://github.com/flarum/core.git
synced 2025-10-19 02:36:08 +02:00
went over most of the changed attributes from the other pr
This commit is contained in:
@@ -49,7 +49,7 @@ class DiscussionRepository
|
||||
*/
|
||||
public function getReadIds(User $user)
|
||||
{
|
||||
return Discussion::leftJoin('users_discussions', 'users_discussions.discussion_id', '=', 'discussions.id')
|
||||
return Discussion::leftJoin('discussions_users', 'discussions_users.discussion_id', '=', 'discussions.id')
|
||||
->where('user_id', $user->id)
|
||||
->whereRaw('read_number >= last_post_number')
|
||||
->pluck('id')
|
||||
|
Reference in New Issue
Block a user