mirror of
1
Fork 0
forgejo/routers/api
Gergely Nagy 9f592578f4 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:44:47 +00:00
..
actions Fix nil dereference on error (#30740) (#30746) 2024-05-01 08:14:16 +02:00
forgejo/v1 Fix #2512 /api/forgejo/v1/version auth check (#2582) 2024-03-19 07:16:19 +00:00
packages Fix NuGet Package API for $filter with Id equality (#31188) (#31242) 2024-06-09 11:49:18 +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:44:47 +00:00