1
0
mirror of https://github.com/flarum/core.git synced 2025-08-20 23:31:27 +02:00

Fix following discussion list filter

This commit is contained in:
Toby Zerner
2015-07-27 12:44:45 +09:30
parent d6fe156e89
commit bb8232297f
2 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ class SubscriptionGambit extends RegexGambit
// might be better as `id IN (subquery)`?
$method = $negate ? 'whereNotExists' : 'whereExists';
$search->getQuery()->$method(function ($query) use ($actor, $matches) {
$query->select(app('db')->raw(1))
$query->select(app('flarum.db')->raw(1))
->from('users_discussions')
->whereRaw('discussion_id = discussions.id')
->where('user_id', $actor->id)