gitea/routers/web/repo
Lunny Xiao ddc709ff7f
Add repo_id for attachment (#16958)
When create a new issue or comment and paste/upload an attachment/image, it will not assign an issue id before submit. So if user give up the creating, the attachments will lost key feature and become dirty content. We don't know if we need to delete the attachment even if the repository deleted.

This PR add a repo_id in attachment table so that even if a new upload attachment with no issue_id or release_id but should have repo_id. When deleting a repository, they could also be deleted.

Co-authored-by: 6543 <6543@obermui.de>
2021-09-08 17:19:30 +02:00
..
activity.go
attachment.go Add repo_id for attachment (#16958) 2021-09-08 17:19:30 +02:00
blame.go
branch.go
commit.go Repare and Improve GetDiffRangeWithWhitespaceBehavior (#16894) 2021-08-31 06:16:23 +02:00
compare.go Fix git.Blob.DataAsync(): close pipe since we return a NopCloser (#16899) 2021-08-31 08:43:31 +01:00
download.go
editor.go
editor_test.go
http.go
http_test.go
issue.go Fix git.Blob.DataAsync(): close pipe since we return a NopCloser (#16899) 2021-08-31 08:43:31 +01:00
issue_dependency.go
issue_label.go
issue_label_test.go
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
lfs.go
main_test.go
middlewares.go
migrate.go Make mirror feature more configurable (#16957) 2021-09-07 17:49:36 +02:00
milestone.go In Render tolerate not being passed a context (#16842) 2021-08-28 21:15:56 +01:00
projects.go In Render tolerate not being passed a context (#16842) 2021-08-28 21:15:56 +01:00
projects_test.go
pull.go Ensure that rebase conflicts are handled in updates (#16952) 2021-09-05 10:30:40 +01:00
pull_review.go
release.go Paginate releases page & set default page size to 10 (#16857) 2021-08-29 18:25:16 +02:00
release_test.go
repo.go
search.go
setting.go Add repo_id for attachment (#16958) 2021-09-08 17:19:30 +02:00
setting_protected_branch.go
settings_test.go
tag.go
topic.go
view.go
webhook.go
wiki.go Ensure wiki repos are all closed (#16886) 2021-08-30 22:50:35 +02:00
wiki_test.go