Consistently use the correct public URI for public reports

This commit is contained in:
Eli Ribble 2026-04-28 07:12:12 +00:00
parent 32a0d895c4
commit dba8b6c475
No known key found for this signature in database
6 changed files with 45 additions and 33 deletions

View file

@ -149,6 +149,6 @@ func (res *waterR) byID(ctx context.Context, r *http.Request, is_public bool) (*
return nil, nhttp.NewError("get report: %w", err)
}
populateDistrictURI(&report.PublicReport, res.router)
populateReportURI(&report.PublicReport, res.router)
populateReportURI(&report.PublicReport, res.router, is_public)
return report, nil
}