Commit Graph

130 Commits

Author SHA1 Message Date
shuai 0168309535 fix: resolve conflict 2025-03-17 10:53:33 +08:00
Luffy cd24c91fb1 fix: update admin name validation and username regex 2025-03-17 10:37:00 +08:00
LinkinStars 849ad8dfc5 Merge remote-tracking branch 'origin/dev' into test 2025-03-14 14:17:00 +08:00
Luffy ed2a5ba8f6 feat: add footnote extension to markdown converter 2025-03-14 11:10:52 +08:00
LinkinStars 3811b43fa3 Merge branch 'dev' into test 2025-01-16 15:56:05 +08:00
Young Xu 581f73c857 chore: instance rand.Seed to rand.Source (#1233)
The `rand.Seed` method is currently deprecated, use rand Replace with
the `NewSource` method.

```
// Deprecated: As of Go 1.20 there is no reason to call Seed with
// a random value. Programs that call Seed with a known value to get
// a specific sequence of results should use New(NewSource(seed)) to
// obtain a local random generator.
```

---------

Signed-off-by: Young Xu <xuthus5@gmail.com>
Co-authored-by: LinkinStars <linkinstar@foxmail.com>
2025-01-16 11:16:57 +08:00
LinkinStars 5cffab8649 feat(service): implement file cleanup and deletion functionality 2025-01-10 10:43:35 +08:00
LinkinStars 47c666200e Merge remote-tracking branch 'origin/main' into dev
# Conflicts:
#	internal/base/middleware/accept_language.go
#	internal/schema/answer_schema.go
#	internal/schema/comment_schema.go
#	internal/service/user_admin/user_backyard.go
2025-01-07 12:48:13 +08:00
LinkinStars 0618947350 refactor(name): rename incubator-answer 2025-01-07 10:39:23 +08:00
LinkinStars 57b153c9a9 feat(user): add FilterEmptyString function and apply to user ID filtering 2024-12-25 16:00:08 +08:00
Luffy 6203b5b441 fix: use TrimSpace 2024-12-11 17:11:38 +08:00
Luffy b31d644b92 fix: Fix render comments with line breaks 2024-12-11 17:11:38 +08:00
wxt 73eb2a1133 test: fix TestGetAvatarURL 2024-12-09 11:52:18 +08:00
LinkinStars a955ba0658 feat(upload): add support for file attachments and enhance image upload 2024-12-09 11:52:18 +08:00
sy-records ad956d686e fix: Markdown parsing without incrementing ordered list numbers 2024-12-09 11:52:18 +08:00
LinkinStars f29b43b956 feat(file): update the max image size 2024-12-09 11:52:18 +08:00
Sonui 62b9104a68 fix: support short id 2024-10-12 10:17:18 +08:00
Sonui f575aa9b5f docs: add Apache License headers to source files 2024-10-12 10:17:18 +08:00
Sonui 3eb9822c09 feat(question): support linking question 2024-10-12 10:17:18 +08:00
zahash 3e91f03b40 change minimum username length to 2 instead of 4 2024-10-12 09:59:17 +08:00
LinkinStars e062cbcb0e refactor(gomod): replace pinyin dependency 2024-09-26 16:25:00 +08:00
LinkinStars 0d6ea89ad3 refactor(gomod): upgrade golang and dependence version 2024-09-23 15:00:34 +08:00
LinkinStars f014602ec7 feat(user): change the hash way of gravatar 2024-07-22 11:40:04 +08:00
sy-records 41691eed2f fix: When @ someone, markdown render error 2024-06-27 14:53:04 +08:00
kumfo f972a23dd8 feat(plugin/embed): merge from dev and add embed plugin 2024-05-23 15:57:10 +08:00
LinkinStars e53c7b3c8a docs(asf): add ASF header 2024-03-22 17:30:48 +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 0849e8f540 refactor(file): refactor file format check function 2024-01-30 16:36:39 +08:00
LinkinStars 968f23db7f Release/1.2.5 (#761)
Build Binary For Release / build-goreleaser (push) Has been cancelled
Build Docker Image For Release / build (push) Has been cancelled
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 19:14:13 +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 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 ee5613099f fix(email): fix all incorrect url in email. 2023-10-08 17:58:52 +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 ad6e282416 feat(upload): support upload gif image 2023-09-20 11:37:42 +08:00
buttercannfly de6a633248 Update file_type.go 2023-09-19 18:05:46 +08:00
buttercannfly 541c35e827 fix(image): support upload jog images 2023-09-19 15:30:56 +08:00
LinkinStars 5d28954e4c feat(question): change create question title function 2023-08-18 18:15:44 +08:00
aichy126 ee72b7e0b1 update CheckPrivateMode 2023-07-13 15:27:26 +08:00
LinkinStars 69f250ee04 feat(user): replace space in username with - 2023-07-06 16:18:57 +08:00
LinkinStars fcb48b86ee refactor(repo): refactor some repo test 2023-07-06 12:28:33 +08:00
LinkinStars 1c2151d710 refactor(shortid): remove short id variable 2023-06-02 16:53:49 +08:00
aichy126 27aa4aa8cd UpdateQuestionInviteUser 2023-06-01 12:15:46 +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
aichy126 0ab505a216 add decode test 2023-05-24 17:27:34 +08:00
LinkinStars 7d23b17cdb fix(password): password can't contains space. 2023-05-22 15:09:42 +08:00
LinkinStars e947354a68 feat(upgrade): add gravatar base url 2023-05-15 11:20:50 +08:00