Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | A better go code formatter, and now `make fmt` can run in Windows (#17684) | wxiaoguang | 2021-11-17 | 1 | -0/+1 |
| | | | | * go build / format tools * re-format imports | ||||
* | Decouple unit test, remove intermediate `unittestbridge` package (#17662) | wxiaoguang | 2021-11-16 | 1 | -3/+3 |
| | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> | ||||
* | In many cases user avatar link should be an absolute URL with http host (#17420) | wxiaoguang | 2021-10-25 | 1 | -1/+1 |
| | |||||
* | Avatar refactor, move avatar code from `models` to `models.avatars`, remove ↵ | wxiaoguang | 2021-10-06 | 1 | -9/+2 |
| | | | | | | | | | | | | | | | | duplicated code (#17123) Why this refactor The goal is to move most files from `models` package to `models.xxx` package. Many models depend on avatar model, so just move this first. And the existing logic is not clear, there are too many function like `AvatarLink`, `RelAvatarLink`, `SizedRelAvatarLink`, `SizedAvatarLink`, `MakeFinalAvatarURL`, `HashedAvatarLink`, etc. This refactor make everything clear: * user.AvatarLink() * user.AvatarLinkWithSize(size) * avatars.GenerateEmailAvatarFastLink(email, size) * avatars.GenerateEmailAvatarFinalLink(email, size) And many duplicated code are deleted in route handler, the handler and the model share the same avatar logic now. | ||||
* | Move db related basic functions to models/db (#17075) | Lunny Xiao | 2021-09-19 | 1 | -2/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | * Move db related basic functions to models/db * Fix lint * Fix lint * Fix test * Fix lint * Fix lint * revert unnecessary change * Fix test * Fix wrong replace string * Use *Context * Correct committer spelling and fix wrong replaced words Co-authored-by: zeripath <art27@cantab.net> | ||||
* | Fix broken avatars since #15301 (#15731) | zeripath | 2021-05-05 | 1 | -0/+87 |
There was a missing * from the avatars routes in #15301. Fix #15727 Signed-off-by: Andrew Thornton <art27@cantab.net> |