mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-03 13:44:13 +00:00
Merge pull request #4642 from b2cc/bugfix-4518-unable-to-view-reports-in-admin
[Bugfix] #4518: SQL query that generates the report list in the admin view needs to include the 'id' field
This commit is contained in:
commit
c4843e823e
2 changed files with 2 additions and 2 deletions
|
@ -643,7 +643,7 @@ trait AdminReportController
|
||||||
$q->whereNull('admin_seen') :
|
$q->whereNull('admin_seen') :
|
||||||
$q->whereNotNull('admin_seen');
|
$q->whereNotNull('admin_seen');
|
||||||
})
|
})
|
||||||
->groupBy(['object_id', 'object_type'])
|
->groupBy(['id', 'object_id', 'object_type'])
|
||||||
->cursorPaginate(6)
|
->cursorPaginate(6)
|
||||||
->withQueryString()
|
->withQueryString()
|
||||||
);
|
);
|
||||||
|
|
|
@ -415,7 +415,7 @@ class ComposeController extends Controller
|
||||||
$results = Profile::select('id','domain','username')
|
$results = Profile::select('id','domain','username')
|
||||||
->whereNotIn('id', $blocked)
|
->whereNotIn('id', $blocked)
|
||||||
->where('username','like','%'.$q.'%')
|
->where('username','like','%'.$q.'%')
|
||||||
->groupBy('domain')
|
->groupBy('id', 'domain')
|
||||||
->limit(15)
|
->limit(15)
|
||||||
->get()
|
->get()
|
||||||
->map(function($profile) {
|
->map(function($profile) {
|
||||||
|
|
Loading…
Reference in a new issue