Consistently use the correct public URI for public reports
This commit is contained in:
parent
32a0d895c4
commit
dba8b6c475
6 changed files with 45 additions and 33 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue