Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

update question

aichy1260124cfc435ad
diff --git a/internal/service/question_service.go b/internal/service/question_service.go
index dfcdff3d..c3271b6e 100644
--- a/internal/service/question_service.go
+++ b/internal/service/question_service.go
@@ -358,9 +358,8 @@ func (qs *QuestionService) OperationQuestion(ctx context.Context, req *schema.Op
actMap[schema.QuestionOperationUnPin] = constant.ActQuestionUnPin
actMap[schema.QuestionOperationHide] = constant.ActQuestionHide
actMap[schema.QuestionOperationShow] = constant.ActQuestionShow
-
_, ok := actMap[req.Operation]
- if !ok {
+ if ok {
activity_queue.AddActivity(&schema.ActivityMsg{
UserID: req.UserID,
ObjectID: questionInfo.ID,