Commit Graph

2 Commits (d73623d5262d13c3a38beec2b42368f1007f6794)

Author SHA1 Message Date
wxiaoguang ca4107dc96
Refactor external URL detection ()
Follow , `IsExternalURL` is not needed anymore. 
Add some tests for `RedirectToCurrentSite`
Lunny Xiao 29f149bd9f
Move context from modules to services ()
Since `modules/context` has to depend on `models` and many other
packages, it should be moved from `modules/context` to
`services/context` according to design principles. There is no logic
code change on this PR, only move packages.

- Move `code.gitea.io/gitea/modules/context` to
`code.gitea.io/gitea/services/context`
- Move `code.gitea.io/gitea/modules/contexttest` to
`code.gitea.io/gitea/services/contexttest` because of depending on
context
- Move `code.gitea.io/gitea/modules/upload` to
`code.gitea.io/gitea/services/context/upload` because of depending on
context