gitea/models/system
wxiaoguang 5dddcc1773
chore: fix some trivial problems and TODOs ()
1. Fix incorrect `MentionCount` (actually it seems to be deadcode,
affects nothing)
2. Remove fallback sha1 support for time limit token
3. Use route middleware `reqRepoActionsWriter` for `ArtifactsDeleteView`
4. Use clearer message "Failed to authenticate user" instead of "Verify"
when auth fails
5. `tests/integration/benchmarks_test.go` is not quite right, actually
it is never used, so delete it.
6. Remove or update TODO comments
..
appstate.go Replace more db.DefaultContext ()
main_test.go make writing main test easier ()
notice.go Refactor deletion ()
notice_test.go chore: fix some trivial problems and TODOs ()
setting.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods ()
setting_test.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods ()