hopefully last commit for tonight.
Some checks failed
/ test-build-and-push (push) Has been cancelled
Some checks failed
/ test-build-and-push (push) Has been cancelled
This commit is contained in:
parent
d497e06643
commit
374271d5a2
1 changed files with 1 additions and 2 deletions
|
@ -31,12 +31,11 @@ public class AdminController(
|
|||
[HttpGet("/api/v1/pleroma/admin/reports")]
|
||||
[Authenticate("admin:read:reports")]
|
||||
[ProducesResults(HttpStatusCode.OK)]
|
||||
public async Task<ReportsQuery> GetReports(bool resolved = false)
|
||||
public async Task<ReportsQuery> GetReports()
|
||||
{
|
||||
var user = HttpContext.GetUserOrFail();
|
||||
var reports = await db.Reports
|
||||
.IncludeCommonProperties()
|
||||
.Where(p => p.Resolved == resolved)
|
||||
.ToListAsync();
|
||||
|
||||
var rendered = await reportRenderer.RenderManyAsync(reports);
|
||||
|
|
Loading…
Add table
Reference in a new issue