1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-03 03:56:18 -04:00
gitea/models/issues
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>
2023-04-20 02:39:44 -04:00
..
assignees_test.go
assignees.go
comment_code.go
comment_list.go
comment_test.go Fix issue attachment handling (#24202) 2023-04-20 02:39:44 -04:00
comment.go Fix issue attachment handling (#24202) 2023-04-20 02:39:44 -04:00
content_history_test.go
content_history.go
dependency_test.go
dependency.go
issue_index.go
issue_list_test.go
issue_list.go
issue_lock.go
issue_project.go
issue_test.go
issue_user_test.go
issue_user.go
issue_watch_test.go
issue_watch.go
issue_xref_test.go
issue_xref.go
issue.go Fix issue attachment handling (#24202) 2023-04-20 02:39:44 -04:00
label_test.go
label.go
main_test.go
milestone_test.go
milestone.go
pull_list.go
pull_test.go
pull.go
reaction_test.go
reaction.go
review_test.go
review.go
stopwatch_test.go
stopwatch.go
tracked_time_test.go
tracked_time.go