1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-28 13:49:13 -05:00
forgejo/routers/api/v1
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
..
activitypub add more integration testcases 2024-05-21 18:49:31 +02:00
admin Fix empty field login_name in API response JSON when creating user (#30511) 2024-04-21 11:59:16 +02:00
misc Port "Fix wrong test usage of AppSubURL" 2024-03-06 21:47:44 +01:00
notify drop log.Error in ReadRepoNotifications 2024-03-24 07:12:31 +01:00
org Fix bug on avatar (#31008) 2024-05-19 13:57:52 +02:00
packages remove util.OptionalBool and related functions (#29513) 2024-03-06 12:10:46 +08:00
repo Load attachments for /issues/comments/{id} 2024-07-16 12:45:20 +00:00
settings Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
shared Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
swagger Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00
user feat(federated-star) star repositories via ActivityPub (#1680) 2024-06-06 08:58:11 +02:00
utils Move context from modules to services (#29440) 2024-03-06 12:10:43 +08:00
api.go Add support for workflow_dispatch (#3334) 2024-06-28 05:17:11 +00:00