111 Commits

Author SHA1 Message Date
maishivamhoo123 ff997cb014 fix: update migration version to v2.0.1 and remove default value for TEXT column 2026-03-02 17:37:43 +08:00
maishivamhoo123 844c73cd7f fix: change avatar column type to TEXT to support long URLs 2026-03-02 17:37:43 +08:00
LinkinStars ce5aadf30d feat: add AI configuration support with related controllers and services 2026-01-23 17:25:42 +08:00
Yusuke Tanaka 57f31ec7eb fix: expand avatar column length from 1024 to 2048
The avatar column was too short to store long URLs from external OAuth
providers. When users log in via connector-google plugin, the Google
profile picture URL can exceed 1024 characters, causing a database error:

  Error 1406 (22001): Data too long for column 'avatar' at row 1

This change expands the avatar column from VARCHAR(1024) to VARCHAR(2048).

Note: While URLs can technically exceed 2048 characters per specification,
2048 is the practical limit supported by most browsers and services.
URLs longer than 2048 characters are extremely rare in real-world usage.
2025-12-29 10:28:27 +08:00
ferhat elmas 670aa32325 refactor(lint): add new linters and fix their issues
* gocritic
* misspell
* modernize (aside, bumping go would be nice)
* testifylint
* unconvert
* unparam
* whitespace

related to #1432

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-12-05 10:45:55 +08:00
LinkinStars 9540ef6005 refactor(goimports): add goimports to golangci-lint configuration #1432 2025-12-01 11:32:12 +08:00
Luffy bec3e355a9 feat: Add user comment moderation 2025-09-23 14:57:07 +08:00
LinkinStars 6d02706d4d feat(user): add user suspension functionality 2025-06-26 14:42:08 +08:00
Sonui c7ab8534f1 feat(plugin): add key-value storage support for plugins 2025-05-20 15:10:40 +08:00
LinkinStars b2d5e9ba92 refactor(controller): optimize embed controller and update related components 2025-04-25 10:43:40 +08:00
LinkinStars 5cffab8649 feat(service): implement file cleanup and deletion functionality 2025-01-10 10:43:35 +08:00
LinkinStars 0618947350 refactor(name): rename incubator-answer 2025-01-07 10:39:23 +08:00
LinkinStars 655a7e48e0 feat(question): add linked count feature to question 2024-12-09 11:52:18 +08:00
Sonui 3eb9822c09 feat(question): support linking question 2024-10-12 10:17:18 +08:00
LinkinStars d5d9f38cb1 feat(badge): add trigger object id for all badge award event 2024-09-04 12:00:36 +08:00
kumfo a36d2e810d feat(badge): delete useless field 2024-09-03 14:45:18 +08:00
LinkinStars f0c433cc02 fix(badge): fix badge init data 2024-08-14 12:31:03 +08:00
LinkinStars bede0adbf7 feat(badge): award badge for user 2024-08-14 10:38:17 +08:00
kumfo bb40366f00 feat(badge): badge manage and user center's badge list 2024-08-13 16:12:34 +08:00
LinkinStars 98d93b1f98 feat(badge): add badge checking rule 2024-08-12 16:34:16 +08:00
kumfo 61db21e0d3 feat(badge): fixed user's badge award list and add recent user badges 2024-08-12 15:33:04 +08:00
kumfo 5293f4f3ea feat(badge): user's badge award list 2024-08-09 15:00:46 +08:00
kumfo 203062dd98 feat(badge): badge award 2024-08-09 10:33:03 +08:00
kumfo 49ba98c6fc feat(badge): change badge_award entity 2024-08-08 18:16:08 +08:00
kumfo 797ea9b918 feat(badge): badge info && badge award list 2024-08-08 16:41:17 +08:00
kumfo ea43edc864 feat(badge): define func and add badge's list 2024-08-07 16:35:22 +08:00
kumfo 37981c139b feat(badge): init badge update data 2024-08-01 15:44:11 +08:00
kumfo 95f20c9827 feat(badge): update entity 2024-07-31 14:28:44 +08:00
kumfo b702294920 feat(badge): update entity 2024-07-31 14:00:18 +08:00
kumfo 969592589c feat(badge): init entity 2024-07-31 10:32:10 +08:00
kumfo 795febe0ee feat(hot): change frequent to hot 2024-07-11 17:27:03 +08:00
hgaol 283aa092fe update 2024-05-27 16:01:12 +08:00
LinkinStars abe0680641 Release/1.3.0 (#876)
Co-authored-by: shuai <lishuailing@sifou.com>
Co-authored-by: Han Gao <dhangao@hotmail.com>
Co-authored-by: wzy <770954908@qq.com>
Co-authored-by: zahash <zahash.z@gmail.com>
Co-authored-by: Hosein Beigi <hbsciw@gmail.com>
Co-authored-by: kumfo <kumfo@sifou.com>
Co-authored-by: sy-records <52o@qq52o.cn>
Co-authored-by: 而立 <cuihengqing@cai-inc.com>
Co-authored-by: foxzero-007 <chq2549603631@gmail.com>
Co-authored-by: easy <58644520+foxzero-007@users.noreply.github.com>
Co-authored-by: robin <robin@rnode.me>
Co-authored-by: Akhil <surapuramakhil@gmail.com>
Co-authored-by: Shaobiao Lin <whalevocal@gmail.com>
2024-03-22 17:25:46 +08:00
LinkinStars 937de43978 Release/1.2.5 (#759)
Signed-off-by: Adam Vollrath <adam.d.vollrath@gmail.com>
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>
Co-authored-by: Adam Vollrath <adam.d.vollrath@gmail.com>
Co-authored-by: kumfo <kumfo@sifou.com>
Co-authored-by: Yang Wong <yang wang>
Co-authored-by: hbsciw <hbsciw@gmail.com>
2024-01-29 17:19:41 +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
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 c2b4a49dc0 feat(visit): only login user can access upload file in private mode. 2023-10-10 16:23:10 +08:00
LinkinStars 9d96dda29b feat(answer): support recover answer, question and tag 2023-09-26 16:15:25 +08:00
LinkinStars 758309d77b feat(config): set config cache time 2023-08-29 16:47:38 +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 773be25c33 Merge branch 'feat/1.1.1/state' into test 2023-07-31 15:28:27 +08:00
LinkinStars 4004c0b674 fix(revision): Increase content field size in revision entity
Modified the "content" field in the "revision_entity.go" file from 'TEXT' to 'MEDIUMTEXT'. Added a new migration file "v14.go" to handle the transition of the database 'content' field to 'MEDIUMTEXT'. Also adapted the 'command.go' and 'migrations.go' files to handle the new migration. These changes were necessary to accommodate larger revision content sizes.
2023-07-31 15:04:32 +08:00
aichy126 29c253baa3 update captcha 2023-07-18 18:11:18 +08:00
aichy126 b6a85b06ab update captcha 2023-07-17 18:46:09 +08:00
aichy126 3a12d46c37 update captcha 2023-07-17 17:44:08 +08:00
LinkinStars 92c5bb6616 refactor(answer): refactor admin question answer page list 2023-06-20 16:55:43 +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 879c781e35 refactor(config): remove all config global variables and cache all config related data 2023-05-25 20:13:18 +08:00