Commit Graph

1483 Commits

Author SHA1 Message Date
LinkinStars a8e06213eb Merge branch 'dev' into feat/1.2.5/notification 2024-01-02 15:28:22 +08:00
LinkinStars 9f434ef751 feat(notification): add notification type for plugin 2024-01-02 14:53:13 +08:00
LinkinStars f2656ec749 feat(notification): add notification for plugin 2023-12-28 17:01:43 +08:00
LinkinStars a005f004aa feat(notification): update notification config 2023-12-27 11:10:44 +08:00
LinkinStars 269882071d fix(plugin): remove disabled plugin form user plugin list 2023-12-26 17:27:22 +08:00
LinkinStars 645df7f2a6 feat(notification): add user config plugin API 2023-12-26 15:27:04 +08:00
Han Gao ec11a126c4 fix: tags will not be synced to search plugin when adding new question (#697)
fix #696 .

changes,
1. change `qr.updateSearch` to `qr.UpdateSearch` to make it accessible
outside.
2. update search (search plugin) after updating or adding records in the
`TagRel` table.

---------

Signed-off-by: Adam Vollrath <adam.d.vollrath@gmail.com>
Co-authored-by: sy-records <52o@qq52o.cn>
Co-authored-by: Adam Vollrath <adam.d.vollrath@gmail.com>
Co-authored-by: kumfo <kumfo@sifou.com>
2023-12-26 14:26:12 +08:00
hgaol 67d1af366d update 2023-12-18 17:52:51 +08:00
hgaol e362ca8073 replace builder.Eq with In 2023-12-18 17:52:51 +08:00
hgaol fd75d2f50d update search question and answer 2023-12-18 17:52:51 +08:00
hgaol c0a231ede3 update for synonym tag logic 2023-12-18 17:52:51 +08:00
hgaol 4aa42891ce fix: questions with synonym tags do not show under the origin tag 2023-12-18 17:52:51 +08:00
YL1028K 68f5af01d9 fix: log prints incorrect method(#684) 2023-12-15 17:07:35 +08:00
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
lufei 7aa16f245b optimize code 2023-11-29 16:44:08 +08:00
sy-records 9dc0d566cc fix by code review 2023-11-29 16:44:08 +08:00
sy-records 3e76a0368f fix: permalink error on some pages 2023-11-29 16:44:08 +08:00
sy-records 0267f4bd69 fix: canonical link error 2023-11-22 16:26:44 +08:00
LinkinStars 84ef7d0e55 ci(asf): change the check-asf-header script to docker command via hawkeye-native 2023-11-17 15:54:27 +08:00
Saurabh Chatterjee aa65f7c8b5 test(repo): Change to fix repo tests for Admin and Cache
Change to fix repo tests for Admin and Cache which were broken after a recent change to  how userCacheInfo handles response for non-existent keys
2023-11-09 11:46:40 +08:00
kelvinkuo cf992eb3d9 fix:rename controller to conform convention 2023-11-09 11:39:14 +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 67d5e6fbf8 fix(build): ignore plugins dir when no plugins for build 2023-10-18 17:57:29 +08:00
LinkinStars e8c7e7520f feat(plugin): delete \n when no plugins 2023-10-18 13:08:12 +08:00
LinkinStars 929f674581 feat(plugin): ignore not ui dir when copy ui plugins 2023-10-18 12:39:48 +08:00
LinkinStars caf634bc5d feat(plugin): copy ui plugins to target when build 2023-10-18 11:34:06 +08:00
LinkinStars d6543a14e9 Merge remote-tracking branch 'origin/feat/1.2.0/plugin' into test 2023-10-17 15:57:54 +08:00
LinkinStars cd08586264 fix(plugin): remove default plugins 2023-10-17 15:57:42 +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 9e9fb8977b fix(question): fix incorrect trigger user id when admin delete question 2023-10-13 17:05:34 +08:00
LinkinStars c6743721a2 fix(visit): force update visit token when login 2023-10-13 16:53:11 +08:00
LinkinStars 8524d1494b fix(visit): remove visit token when logout 2023-10-11 15:05:10 +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
LinkinStars 5101c12ec1 fix(search): filter all special characters when searching 2023-10-08 15:11:02 +08:00
LinkinStars fdd5cd63a0 Merge pull request #562 from lzakharov/refactor-close-resources
refactor: close used resources
2023-10-08 11:16:33 +08:00
LinkinStars 79d025f0b1 feat(siteinfo): update manifest.json site name 2023-10-08 10:29:53 +08:00
Lev Zakharov 5ce5187422 refactor: close used resources 2023-10-07 18:41:55 +03:00
LinkinStars 545342db50 feat(search): add link for search desc 2023-09-27 16:43:44 +08:00
LinkinStars 9d96dda29b feat(answer): support recover answer, question and tag 2023-09-26 16:15:25 +08:00
LinkinStars 1d46a54444 feat(plugin): add plugins status api 2023-09-25 15:17:02 +08:00
LinkinStars 3242eba69c Merge remote-tracking branch 'origin/feat/1.2.0/img' into feat/1.2.0/question 2023-09-22 14:44:49 +08:00
LinkinStars b2d5781633 feat(user): support upload webp image 2023-09-22 14:36:40 +08:00
LinkinStars da0bc8b76d feat(user): change delete user display info 2023-09-22 11:47:05 +08:00
LinkinStars 148a025f00 feat(user): add normal query condition for user page 2023-09-21 16:54:59 +08:00