You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
wxiaoguang de2268ffab
Fix issue attachment handling (#24202)
Close #24195

Some of the changes are taken from my another fix
f07b0de997
in #20147 (although that PR was discarded ....)


The bug is:

1. The old code doesn't handle `removedfile` event correctly
2. The old code doesn't provide attachments for type=CommentTypeReview


This PR doesn't intend to refactor the "upload" code to a perfect state
(to avoid making the review difficult), so some legacy styles are kept.

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Giteabot <teabot@gitea.io>
1 year ago
..
assignee.go Make more functions use ctx instead of db.DefaultContext (#24068) 1 year ago
assignee_test.go Make more functions use ctx instead of db.DefaultContext (#24068) 1 year ago
comments.go Fix issue attachment handling (#24202) 1 year ago
commit.go Webhooks: for issue close/reopen action, add commit ID that caused it (#22583) 1 year ago
commit_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
content.go Implement FSFE REUSE for golang files (#21840) 2 years ago
issue.go Make more functions use ctx instead of db.DefaultContext (#24068) 1 year ago
issue_test.go Make more functions use ctx instead of db.DefaultContext (#24068) 1 year ago
label.go Implement FSFE REUSE for golang files (#21840) 2 years ago
label_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
main_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
milestone.go Rename almost all Ctx functions (#22071) 2 years ago
milestone_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago
status.go Webhooks: for issue close/reopen action, add commit ID that caused it (#22583) 1 year ago