Commits at 00a981d341dfa62d2a9667b01500820ec7ddf19a
00a981d3Update go-chi/cache to utilize Ping() (#19719)
* update gitea.com/go-chi/cache -> v0.2.0
* ajust to new interface
* refactor6543
authored at
GitHub
comitted at
6680cca0clarify what session provider 'db' does (#19713)
* clarify what session provider 'db' does
* Also update session.PROVIDER in app.example.ini
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>f0x52
authored at
GitHub
comitted at
77e93463Fix duplicate entry error when add team member (#19702)
zuzuviewer
authored at
GitHub
comitted at
b135313c[Refactor] convert team(s) to apiTeam(s) (#13745)
* Refactor: teams to api convert
* make org load optional
* more info in tests6543
authored at
GitHub
comitted at
61f93935Use a better OlderThan for DeleteInactiveUsers (#19693)
* Use a better OlderThan for DeleteInactiveUsers
- Currently the OlderThan is zero, for instances that enable or run this
task this could actually delete just new users that still need to
confirm their email. This patch fixes that by setting the default to the
`ActiveCodeLives` setting, which corresponds to the amount of time that
a user can active their account, thus avoiding the issue of deleting
unactivated email users.
* Use correct durationGusted
authored at
GitHub
comitted at
e45738e3Introduce eslint-plugin-jquery (#19690)
Introduce the plugin that allows us to gradually forbid jQuery code.
I've enabled all rules that already pass.
Next step will be to go through each rule and fix the issues by using
native DOM equivalents, which I think can be done in separate PRs, but
if prefered I could also start here.silverwind
authored at
GitHub
comitted at
368baf9eUse Vue to refactor pull merge UI (#19650)
* Use Vue to refactor pull merge UI
* add comments
* fix comments
* small fine tune
* fix tests
* adopt new pull default messages
* clean up
Co-authored-by: 6543 <6543@obermui.de>wxiaoguang
authored at
GitHub
comitted at
f41c2becDelete user related oauth stuff on user deletion too (#19677)
* delete user related oauth stuff on user deletion too
* extend doctor check-db-consistency6543
authored at
GitHub
comitted at
cbd45471Move access and repo permission to models/perm/access (#19350)
* Move access and repo permission to models/perm/access
* Remove unnecessary codeLunny Xiao
authored at
GitHub
comitted at
8e8e936aTidy up `<head>` template (#19678)
Neiter `<meta>` nor `<link>` require a closing slash at the end in HTML,
remove it.silverwind
authored at
GitHub
comitted at
318f3602Update go tool dependencies (#19676)
* Update go tool dependencies
Updated all tool dependencies to latest tags, hoping CI will like it.
* fix new lint errors
* handle more strings.Title cases
* remove lint skipsilverwind
authored at
GitHub
comitted at
3c658dffUpdate JS dependencies (#19675)
* Update JS dependencies
- Update all JS dependencies minus vue and vue-loader
- Adapt to jest 28
- Add new eslint rules
- Tested Mermaid and Swagger-UI
* switch to @happy-dom/jest-environment for faster tests
* bump eslint env to es2022silverwind
authored at
GitHub
comitted at
9d0253a9Use better message for consistency check (#19672)
- Don't log the reflect struct, but instead log the ID of the struct.
This improves the error message, as you would actually know which row is
the error.Gusted
authored at
GitHub
comitted at
7e19200eAdd tooltip to pending PR comments (#19662)
Jack Hay
authored at
GitHub
comitted at
3da9dafcAdd Webfinger endpoint (#19462)
This adds the [Webfinger](https://webfinger.net/) endpoint for federation.
Supported schemes are `acct` and `mailto`. The profile and avatar url are returned as metadata.KN4CK3R
authored at
GitHub
comitted at
a61a47f9Update documentation to disable duration settings with -1 instead of 0 (#19647)
To turn off the notification endpoint polling, the value should be set to -1, not 0.Jimmy Praet
authored at
GitHub
comitted at
9f5ddca5Set the LastModified header for raw files (#18356)
Although the use of LastModified dates for caching of git objects should be
discouraged (as it is not native to git - and there are a LOT of ways this
could be incorrect) - LastModified dates can be a helpful somewhat more human
way of caching for simple cases.
This PR adds this header and handles the If-Modified-Since header to the /raw/
routes.
Fix #18354
Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>zeripath
authored at
GitHub
comitted at
e435283cDon't select join table's columns (#19660)
* Don't select join table
* Add commentLunny Xiao
authored at
GitHub
comitted at
a9ca4b41Calculate filename hash only once (#19654)
* Calculate hash only once.
* remove unused Sha1 template helper function, use ctx.Data["FileNameHash"]
* fix unit testsKN4CK3R
authored at
GitHub
comitted at
9efa4713Admin should not delete himself (#19423)
Admin should not be able to delete themselves.
Also partially fix #15449
Lunny Xiao
authored at
GitHub
comitted at