Commit Graph

267 Commits

Author SHA1 Message Date
LinkinStars 82fdfc7763 Release/1.2.1 (#678)
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
Co-authored-by: shuai <lishuailing@sifou.com>
Co-authored-by: kelvinkuo <kelvinkuo224@gmail.com>
Co-authored-by: hgaol <dhangao@hotmail.com>
Co-authored-by: sy-records <52o@qq52o.cn>
2023-12-14 15:07:58 +08:00
Eng Zer Jun b6f0c70874 refactor: remove redundant len and nil check
From the Go specification [1]:

  "1. For a nil slice, the number of iterations is 0."

`len` returns 0 if the slice [2]. Therefore, checking `len(v) > 0`
around a loop is unnecessary.

[1]: https://go.dev/ref/spec#For_range
[2]: https://pkg.go.dev/builtin#len

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-11-09 11:37:40 +08:00
LinkinStars a458f3409c rename all old answerdev/answer link to apache/incubator-answer (#603)
Co-authored-by: shuai <lishuailing@sifou.com>
2023-11-01 14:48:35 +08:00
tison 3d2187d849 chore: add license headers
Signed-off-by: tison <wander4096@gmail.com>
2023-10-26 11:11:23 +08:00
LinkinStars f1ac3c4820 fix(limit): remove limit record when error occur 2023-10-17 10:30:51 +08:00
LinkinStars 5ca5120cf7 feat(limit): add duplicate request limit 2023-10-16 18:46:25 +08:00
LinkinStars a0d57a1890 feat(visit): can visit branding image without token 2023-10-10 17:49:29 +08:00
LinkinStars c2b4a49dc0 feat(visit): only login user can access upload file in private mode. 2023-10-10 16:23:10 +08:00
LinkinStars ee5613099f fix(email): fix all incorrect url in email. 2023-10-08 17:58:52 +08:00
LinkinStars a920e5c2c1 Merge remote-tracking branch 'origin/dev' into feat/1.2.0/question
# Conflicts:
#	internal/service/uploader/upload.go
2023-10-08 15:11:35 +08:00
Lev Zakharov 5ce5187422 refactor: close used resources 2023-10-07 18:41:55 +03:00
LinkinStars ad6e282416 feat(upload): support upload gif image 2023-09-20 11:37:42 +08:00
LinkinStars a91cc57a4c feat(i18n): show translation progress 2023-09-15 16:28:37 +08:00
LinkinStars 19d51598a7 chore(handler): delete unused code 2023-09-05 17:55:19 +08:00
LinkinStars 758309d77b feat(config): set config cache time 2023-08-29 16:47:38 +08:00
LinkinStars e75142a555 fix(answer): fix incorrect notification's triggerUserID when cancel accepted answer 2023-08-29 11:39:51 +08:00
LinkinStars 119c7ddf6d Merge branch 'feat/1.1.2/notification' into test 2023-08-22 17:40:49 +08:00
LinkinStars e4a77367a4 feat(notification): add notification limit 2023-08-22 17:07:45 +08:00
LinkinStars 7a036f2118 Merge branch 'feat/1.1.2/notification' into test 2023-08-22 12:02:42 +08:00
LinkinStars 2bd8f7f771 feat(notification): add new question notification 2023-08-22 12:00:53 +08:00
LinkinStars 6a3d2f95d2 feat(notification): add user notification config API 2023-08-21 15:07:30 +08:00
LinkinStars 0f26ab5aa7 Merge branch 'hot-fix/1.1.1/login' into test 2023-08-18 10:59:53 +08:00
LinkinStars f4e4e0b93c fix(login): move action record api to may auth router 2023-08-18 10:58:57 +08:00
LinkinStars a9e5e1e4ec Merge remote-tracking branch 'origin/feat/1.1.2/errmsg' into test 2023-08-14 18:44:32 +08:00
LinkinStars a8ec3ec045 fix(error): format error messageˆ 2023-08-14 18:43:24 +08:00
LinkinStars 783b826b51 Merge branch 'feat/1.1.2/user' into test 2023-08-14 15:47:03 +08:00
LinkinStars 00e40ad5e6 feat(users): add users error message 2023-08-14 15:46:13 +08:00
LinkinStars 65eb0daa85 feat(user): update user status 2023-08-04 15:48:20 +08:00
LinkinStars eef4b9df9e feat(user): update user status 2023-08-04 15:47:50 +08:00
LinkinStars 66a04d0e5a feat(validator): format error message 2023-08-03 19:54:38 +08:00
aichy a8c13e5bb4 update captcha 2023-07-19 18:42:12 +08:00
aichy126 ee72b7e0b1 update CheckPrivateMode 2023-07-13 15:27:26 +08:00
aichy126 581bfc1cbe update CheckPrivateMode 2023-07-13 11:56:50 +08:00
LinkinStars a23080df0a refactor(sitemap): save sitemap in cache 2023-06-28 10:52:36 +08:00
LinkinStars 622c517da7 refactor(data): use names for gonic mapper 2023-06-21 16:41:14 +08:00
LinkinStars 42c08fe566 refactor(uploader): refactor AvatarThumbFile service 2023-06-13 17:38:22 +08:00
LinkinStars 420667cd3e Merge branch 'github-main' into feat/1.1.0/context 2023-06-06 17:09:35 +08:00
LinkinStars fbb3269f08 fix(email): fix the old email config format 2023-06-06 11:26:38 +08:00
LinkinStars 1c2151d710 refactor(shortid): remove short id variable 2023-06-02 16:53:49 +08:00
LinkinStars aeaeb4b127 Merge remote-tracking branch 'github/feat/1.1.0/report' into feat/1.1.0/context 2023-06-02 12:17:15 +08:00
LinkinStars bce3b923aa Merge remote-tracking branch 'github/feat/1.1.0/report' into test 2023-06-02 12:16:52 +08:00
LinkinStars 0744658d7a refactor(siteinfo): remove site url var 2023-06-02 12:16:22 +08:00
LinkinStars 7662e9a552 refactor(upload): extract uploader service interface 2023-05-31 16:25:47 +08:00
LinkinStars fb412cb417 refactor(avatar): remove all avatar global variables config 2023-05-29 14:58:58 +08:00
LinkinStars 7e9becd8f5 refactor(path): remove init for path ignore var 2023-05-29 12:14:33 +08:00
LinkinStars 40690a2a36 fix(notification): add rank activity type translation 2023-05-29 10:38:59 +08:00
LinkinStars 0c43b9c7b1 Merge branch 'feat/1.1.0/report' into feat/1.1.0/context 2023-05-26 15:26:07 +08:00
LinkinStars cbaf50e691 fix(user): check email invalid when oauth login 2023-05-26 15:23:23 +08:00
LinkinStars 879c781e35 refactor(config): remove all config global variables and cache all config related data 2023-05-25 20:13:18 +08:00
LinkinStars 850637428c feat(permission): update translation for no enough reputation to operate 2023-05-25 18:03:10 +08:00