Commit Graph

6 Commits (1fbc56d732a8ff9f3c816074b6870a61fae3dea6)

Author SHA1 Message Date
wxiaoguang 20c135cd46
Use Go 1.19 fmt for Gitea 1.17, sync emoji data ()
The images used by Gitea's drone pipeline were upgraded to Go 1.19.x
It causes the lint fails because Go 1.19 uses new code format.

This PR partially backport  (including the emoji-data sync),
partially fix the format manually.
wxiaoguang c18d8d6968
Remove legacy `+build:` constraint ()
Go 1.17 and later use modern `//go:build` constraints, the old `// +build:` constraints should be removed.
luzpaz 8c647bf0f6
Fix various typos ()
Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby,te,unknwon`

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Gusted ff2fd08228
Simplify parameter types ()
Remove repeated type declarations in function definitions.
techknowlogick 499b05da22
Add user settings key/value DB table ()
wxiaoguang a8fd76557b
Better builtin avatar generator ()
This PR fixes the builtin avatar generator.

1. The random background color makes some images very dirty. So now we only use white background for avatars.
2. We use left-right mirror avatars to satisfy 
3. Fix a small padding error in the algorithm