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
5e705a124b
refactor(lint): improve error handling and code consistency across multiple files
2025-12-01 12:27:25 +08:00
LinkinStars
9540ef6005
refactor(goimports): add goimports to golangci-lint configuration #1432
2025-12-01 11:32:12 +08:00
ferhat elmas
f723d120d9
feat: add golangci-lint into lint target
...
* replace empty interface with any
* run fmt via golangci-lint
related to #1432
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2025-12-01 11:14:38 +08:00
ferhat elmas
ce053ccfa6
fix: multi byte run boundary for cut long title
...
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2025-11-25 17:58:11 +08:00
ferhat elmas
a15dd41550
refactor(internal): compile regex once while clearing text
...
Regex and Replacer can be reused.
No need to recreate for each invocation.
Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com >
2025-11-24 10:32:47 +08:00
Sonui
93e183be62
feat: Add resetPassword cli tool
2025-10-28 14:52:53 +08:00
Luffy
bec3e355a9
feat: Add user comment moderation
2025-09-23 14:57:07 +08:00
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