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.
gitea/routers/web
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>
4 years ago
..
admin Improve SMTP authentication and Fix user creation bugs (#16612) 4 years ago
dev Refactor routers directory (#15800) 4 years ago
events Add an abstract json layout to make it's easier to change json library (#16528) 4 years ago
explore Related refactors to ctx.FormX functions (#16567) 4 years ago
org Make mirror feature more configurable (#16957) 4 years ago
repo Add repo_id for attachment (#16958) 4 years ago
user Add Cache-Control to avatar redirects (#16973) 4 years ago
base.go Allow setting X-FRAME-OPTIONS (#16643) 4 years ago
goget.go Related refactors to ctx.FormX functions (#16567) 4 years ago
home.go Refactor routers directory (#15800) 4 years ago
metrics.go Refactor routers directory (#15800) 4 years ago
swagger_json.go Refactor routers directory (#15800) 4 years ago
web.go Fix wiki raw commit diff/patch view (#16891) 4 years ago