Commit Graph

277 Commits

Author SHA1 Message Date
LinkinStars 7495f068df
Fix(role): Fix an issue that admin could not be set correctly under sqlite (#284)
* fix(role): use session in transaction

* refactor(role): rename remove user tokens function
2023-03-26 17:26:16 +08:00
aichy126 f93beb51ca update tag 2023-03-24 16:39:08 +08:00
LinkinStars 9bd9b475f4 Merge branch 'feat/ui-1.1.0' into feature-plugin
# Conflicts:
#	internal/base/reason/reason.go
#	internal/schema/user_schema.go
#	internal/service/user_service.go
2023-03-21 11:45:50 +08:00
aichy126 3367ecd203 update short id 2023-03-09 14:59:07 +08:00
aichy126 2cf061ea68 Merge branch 'main' into feat/1.0.7/short-id 2023-03-09 11:37:48 +08:00
aichy126 5e2af78e96 update notification 2023-03-09 11:37:10 +08:00
LinkinStars 4a8ae2b166 Merge branch 'dev' into feature-plugin 2023-03-07 15:39:07 +08:00
LinkinStars 7dd3715ff3 Merge branch 'feat/1.0.6/object-not-found' into test 2023-03-06 12:27:32 +08:00
LinkinStars ba8e173658 fix(answer): The author can view the deleted answer. 2023-03-06 12:27:04 +08:00
aichy126 c7d616c991 update short id 2023-03-03 18:41:26 +08:00
aichy126 89600933b0 update answer short id 2023-03-03 17:47:48 +08:00
aichy126 4e4226048d update sitemap time 2023-03-03 16:40:24 +08:00
aichy126 789cf6bd8b update short id 2023-03-03 15:47:56 +08:00
aichy126 f3d48f61e0 Merge branch 'feat/1.0.6/object-not-found' into test 2023-03-01 17:50:22 +08:00
LinkinStars c3d8d30892 fix(answer): Only the admin and author can view the deleted answer. 2023-03-01 17:28:16 +08:00
aichy126 813ad0b989 update VerifyCaptcha 2023-02-24 16:30:21 +08:00
LinkinStars 593ffad92d Merge branch 'github-main' into feature-plugin
# Conflicts:
#	go.mod
#	go.sum
#	ui/src/hooks/index.ts
#	ui/src/router/index.tsx
2023-02-21 17:37:36 +08:00
aichy126 376ad452e7 Merge branch 'feat/1.0.6/fixbug' into test 2023-02-20 15:15:05 +08:00
aichy126 8b07d5c47d update question action time 2023-02-20 15:14:39 +08:00
aichy126 a66f104d02 Merge branch 'dev' into feat/1.0.5/deltag 2023-02-17 11:39:13 +08:00
aichy126 921cd3465f update sitemap time format 2023-02-15 15:10:39 +08:00
aichy126 c9b697318f add GetTagSynonymCount 2023-02-14 15:53:35 +08:00
lcgash@163.com 1a5cdba578 fix: 修复取消点赞报错的问题 2023-02-10 18:34:30 +08:00
LinkinStars 9c2d2b1df4 Merge branch 'github-main' into feature-plugin 2023-02-06 11:25:53 +08:00
LinkinStar 6a8d5e5984 Merge branch 'feat/1.0.4/comment' into feat/plugin/connector/github
# Conflicts:
#	internal/migrations/migrations.go
#	internal/migrations/v6.go
#	internal/service/user_common/user.go
#	internal/service/user_service.go
#	pkg/checker/reserved_username.go
#	ui/build/index.html
2023-02-01 17:02:00 +08:00
aichy126 74655b7b40 Merge branch 'feat/1.0.4/comment' into test 2023-02-01 16:47:02 +08:00
aichy126 1ee34b884b update add db session 2023-01-30 15:25:43 +08:00
kumfo 1aacf2802c style(search_repo): sql code style 2023-01-30 10:41:33 +08:00
kumfo 8b861b6fd7 fix(search_repo): question accept status error 2023-01-30 10:40:12 +08:00
LinkinStar 8d0bd2be20 feat(plugin): Add plugin config repo 2023-01-18 10:39:55 +08:00
LinkinStar 29aa3f7ef2 feat(plugin): add connector API 2023-01-16 16:27:23 +08:00
linkinstar 006d89a405 Merge branch 'release/1.0.3' into 'main'
Release/1.0.3

See merge request opensource/answer!421
2023-01-16 02:50:35 +00:00
aichy126 6da8c3c2d8 update GetTagListByName 2023-01-13 15:58:29 +08:00
LinkinStar 06db2bd091 feat(plugin): The third-party login send binding email 2023-01-09 16:54:20 +08:00
LinkinStar 1db4f5586b fix(plugin): add external login binding send email interface 2023-01-06 17:22:09 +08:00
LinkinStar 01c02ae2b7 fix(plugin): add user external login repo 2023-01-06 14:48:41 +08:00
LinkinStar 81d786ff66 feat(plugin): add user external login service 2023-01-06 14:34:53 +08:00
Zapan Gao 29bf82f62e
Fix sql error in mysql8+ 2023-01-04 14:44:21 +08:00
LinkinStar 7268fe2331 Merge remote-tracking branch 'origin/feat/1.0.2/user' into test 2022-12-30 17:09:47 +08:00
LinkinStar 96e292462e feat(question): Adjust the home page problem list display rules 2022-12-30 17:09:32 +08:00
杨光富 34d600006f Merge branch 'fix/search' into 'test'
Fix/search

See merge request opensource/answer!392
2022-12-29 13:53:16 +00:00
kumfo b97a4610d8 fix(search_repo): #issues/142 the SQL is incompatible in sqlite, change SQL to fix. 2022-12-29 20:52:30 +08:00
LinkinStar 302d1362b0 fix(tags): tags in search result should be sort 2022-12-28 18:08:34 +08:00
LinkinStar 72f512553a refactor(code): replace outdated function 2022-12-28 17:20:55 +08:00
LinkinStar 81135192e1 fix(tag): It is not necessary to add a query with reserved tags when searching for tags using the title 2022-12-28 11:04:36 +08:00
LinkinStar 81f914d72f feat(notification): Email notice when a user answers or comment 2022-12-27 17:42:23 +08:00
aichy e1d9837c18 Merge branch 'hot-fix/1.0.0' into test 2022-12-23 14:11:00 +08:00
aichy ded980b676 update captcha 2022-12-23 14:10:38 +08:00
杨光富 445f543166 Merge branch 'fix/search' into 'test'
fix(search/tag filter): tag search filter exclude the tag_rel is deleted

See merge request opensource/answer!381
2022-12-23 03:49:08 +00:00
kumfo b529bd8b8e fix(search/tag filter): tag search filter exclude the tag_rel is deleted 2022-12-23 11:45:33 +08:00
杨光富 6dd64314d5 Merge branch 'fix/search' into 'test'
fix(search/tag filter): tag search filter exclude the tag_rel is deleted

See merge request opensource/answer!380
2022-12-23 03:26:38 +00:00
kumfo 29b478cf27 fix(search/tag filter): tag search filter exclude the tag_rel is deleted 2022-12-23 11:22:59 +08:00
杨光富 0fafdfeee9 Merge branch 'fix/search' into 'test'
Fix/search

See merge request opensource/answer!376
2022-12-22 09:06:01 +00:00
kumfo 7e8906ebb1 fix(issues/136): fixed tags filter search result 2022-12-22 17:00:52 +08:00
aichy b022c1f156 Merge branch 'hot-fix/1.0.0' into test 2022-12-22 11:28:13 +08:00
aichy c5f20d4e4f update GetActionType 2022-12-22 11:28:01 +08:00
aichy b8077d37b3 update Adopt to Accept 2022-12-22 11:04:19 +08:00
aichy bcfeef1490 update name modification 2022-12-21 16:55:16 +08:00
LinkinStar 02a56315b4 fix(vote): There is no return of rank for users who was canceled their down votes. 2022-12-20 11:21:32 +08:00
LinkinStar b8d2d6e279 Merge branch 'feat/0.7.0/user-manage' into test
# Conflicts:
#	internal/service/search_parser/search_parser.go
2022-12-16 16:48:47 +08:00
LinkinStar 6e1f4841f1 style(simple): Properly handle unhandled errors 2022-12-16 16:35:55 +08:00
kumfo b85a907f9a merge: merge from test 2022-12-15 12:03:10 +08:00
kumfo 9170a801f6 fix(search): user:me or user:username can be searched 2022-12-15 11:42:16 +08:00
LinkinStar 9dc8faace6 fix(user): Fix the problem that user reputation will become negative 2022-12-15 10:49:03 +08:00
LinkinStar 392806b146 Merge remote-tracking branch 'origin/feat/0.6.0/seo' into feat/0.7.0/user-manage 2022-12-13 14:11:49 +08:00
aichy126 07d4b8b803 add cron 2022-12-13 10:40:07 +08:00
aichy126 d0bff13d8a sitemap cache 2022-12-12 18:21:03 +08:00
LinkinStar 79158f54bd feat(user): add user ranking api 2022-12-12 16:39:48 +08:00
LinkinStar 18ca572a38 feat(user): add user email duplication check 2022-12-12 14:29:24 +08:00
LinkinStar 08478d8213 feat(siteinfo): add custom css html response in siteinfo api 2022-12-10 17:12:31 +08:00
LinkinStar c09d861b5d feat(seo): seo update 2022-12-09 10:35:49 +08:00
LinkinStar c42b3e1c3a feat(login): add must login middle 2022-12-07 18:15:46 +08:00
aichy126 962b4b098c fix search question tags 2022-12-07 15:50:46 +08:00
LinkinStar 42756c0742 feat(user): backend add user and change user password 2022-12-07 10:26:02 +08:00
LinkinStar bb8686d7cd Merge remote-tracking branch 'origin/feat/0.6.0/tag' into test 2022-12-06 16:55:20 +08:00
LinkinStar d95bd6aa79 Merge branch 'feat/0.6.0/user-role' into test
# Conflicts:
#	i18n/zh_CN.yaml
#	internal/controller/answer_controller.go
#	internal/migrations/v3.go
#	internal/schema/activity.go
2022-12-06 16:50:55 +08:00
aichy126 4c838fccfe fix revision userid to int64 2022-12-06 14:36:37 +08:00
aichy126 de429a4521 add revision userid 2022-12-06 14:32:44 +08:00
LinkinStar 5088c3a9ef feat(role): log out user when user was changed role 2022-12-05 17:34:53 +08:00
LinkinStar c6060d5aae fix(question): Add the function of reopening the problem 2022-12-02 17:24:46 +08:00
LinkinStar 2b0634e2e6 feat(rank): Modify all permission restriction controls 2022-12-02 15:08:18 +08:00
aichy126 7af6eaac2d Merge branch 'feat/0.5.0/timeline_ai' into test 2022-12-02 15:01:43 +08:00
aichy126 8ccb2ea498 fix unreviewed revision list 2022-12-02 15:01:29 +08:00
LinkinStar 74015c13eb Merge branch 'feat/0.5.0/timeline' into feat/0.6.0/user-role
# Conflicts:
#	internal/controller/tag_controller.go
#	internal/schema/activity.go
#	internal/service/activity/activity.go
2022-12-02 11:27:16 +08:00
LinkinStar 210c5c6a8e feat(role): add role permission 2022-12-02 11:21:24 +08:00
aichy126 0faea88118 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-12-01 18:36:39 +08:00
aichy126 d4b1a5b4e5 fix question last edit userid 2022-12-01 18:36:20 +08:00
LinkinStar affd376f57 Merge branch 'dev' into feat/0.6.0/user-role 2022-12-01 18:23:56 +08:00
LinkinStar 6a9408657c feat(user): add role and role power 2022-12-01 15:54:06 +08:00
LinkinStar 5994ddd338 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-30 19:21:12 +08:00
LinkinStar 457c1cd798 fix(rank): Incorrect version reputation check rule 2022-11-30 19:11:28 +08:00
杨光富 29eed866cd Merge branch 'fix/search' into 'test'
fix: search all contents haven't result

See merge request opensource/answer!299
2022-11-30 10:32:54 +00:00
kumfo 04062afeac fix: search all contents haven't result 2022-11-30 18:25:31 +08:00
杨光富 e13c39cf0d Merge branch 'fix/search' into 'test'
fix(search_repo):

See merge request opensource/answer!290
2022-11-29 06:22:40 +00:00
kumfo a331cad4bf fix(search_repo):
1. is:question and is:answer can be return list without keywords.
2. fixed search result count is limited page_size
2022-11-29 14:16:41 +08:00
LinkinStar aea8b1052f Merge remote-tracking branch 'origin/feat/0.5.0/timeline_ai' into test 2022-11-25 16:03:31 +08:00
LinkinStar 7513a4412e fix: remove is admin query condition 2022-11-25 15:57:24 +08:00
LinkinStar 8fa1b0c0d5 Merge branch 'feat/0.5.0/timeline_ai' into test 2022-11-25 15:01:04 +08:00
LinkinStar fa00ea3828 fix: incorrect question permission setting 2022-11-25 14:55:56 +08:00
aichy126 436829c2d1 update tag show 2022-11-25 11:40:54 +08:00