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")]
|
[HttpGet("/api/v1/pleroma/admin/reports")]
|
||||||
[Authenticate("admin:read:reports")]
|
[Authenticate("admin:read:reports")]
|
||||||
[ProducesResults(HttpStatusCode.OK)]
|
[ProducesResults(HttpStatusCode.OK)]
|
||||||
public async Task<ReportsQuery> GetReports(bool resolved = false)
|
public async Task<ReportsQuery> GetReports()
|
||||||
{
|
{
|
||||||
var user = HttpContext.GetUserOrFail();
|
var user = HttpContext.GetUserOrFail();
|
||||||
var reports = await db.Reports
|
var reports = await db.Reports
|
||||||
.IncludeCommonProperties()
|
.IncludeCommonProperties()
|
||||||
.Where(p => p.Resolved == resolved)
|
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|
||||||
var rendered = await reportRenderer.RenderManyAsync(reports);
|
var rendered = await reportRenderer.RenderManyAsync(reports);
|
||||||
|
|
Loading…
Add table
Reference in a new issue