1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-27 09:11:53 -05:00
forgejo/routers
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
..
api Load attachments for /issues/comments/{id} 2024-07-16 12:44:47 +00:00
common Use relative links for commits, mentions, and issues in markdown (#29427) 2024-03-20 08:46:28 +01:00
install Always load or generate oauth2 jwt secret (#30942) 2024-05-24 15:15:07 +02:00
private fix(hook): repo admins are wrongly denied the right to force merge 2024-06-02 22:05:16 +02:00
utils Improve user search display name (#29002) 2024-02-01 17:10:16 +00:00
web Fix Activity Page Contributors dropdown (#31264) 2024-06-18 19:42:31 +00:00
init.go s/Gitea/Forgejo in various log messages and comments 2024-04-22 14:41:17 +00:00