forkjo/routers/api
Gergely Nagy dc075fc1c0 Load attachments for /issues/comments/{id}
The `/repos/{owner}/{repo}/issues/comments/{id}` API endpoint returns an
`assets` field, but the route handler did not load attachments, thus,
the field was never populated.

This patch fixes that, and adds a test to exercise it. The test fails
without the fix.

This addresses a bug discovered in Codeberg/Community#1607.

Signed-off-by: Gergely Nagy <forgejo@gergo.csillger.hu>
(cherry picked from commit fc4f914e71)
2024-07-16 12:45:20 +00:00
..
actions Reduce memory usage for chunked artifact uploads to MinIO (#31325) 2024-06-16 13:42:58 +02:00
forgejo/v1 Fix #2512 /api/forgejo/v1/version auth check (#2582) 2024-03-19 07:16:19 +00:00
packages Enable unparam linter (#31277) 2024-06-16 13:42:58 +02:00
shared Fix #2512 /api/forgejo/v1/version auth check (#2582) 2024-03-19 07:16:19 +00:00
v1 Load attachments for /issues/comments/{id} 2024-07-16 12:45:20 +00:00