You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2023/12/07 03:13:46 UTC

(incubator-answer) branch fix/1.2.1/user updated: fix(activity): remove identical block fix #559

This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch fix/1.2.1/user
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


The following commit(s) were added to refs/heads/fix/1.2.1/user by this push:
     new f0ebcaf3 fix(activity): remove identical block fix #559
f0ebcaf3 is described below

commit f0ebcaf3f64bb9c0044e4aa6d40a89d727ef1154
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Thu Dec 7 11:13:19 2023 +0800

    fix(activity): remove identical block fix #559
---
 internal/repo/activity/answer_repo.go | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/internal/repo/activity/answer_repo.go b/internal/repo/activity/answer_repo.go
index 66bcc2d0..f3ad1dc0 100644
--- a/internal/repo/activity/answer_repo.go
+++ b/internal/repo/activity/answer_repo.go
@@ -306,11 +306,7 @@ func (ar *AnswerActivityRepo) sendAcceptAnswerNotification(
 			ReceiverUserID: act.ActivityUserID,
 			TriggerUserID:  act.TriggerUserID,
 		}
-		if act.ActivityUserID == op.QuestionUserID {
-			msg.ObjectType = constant.AnswerObjectType
-		} else {
-			msg.ObjectType = constant.AnswerObjectType
-		}
+		msg.ObjectType = constant.AnswerObjectType
 		if msg.TriggerUserID != msg.ReceiverUserID {
 			ar.notificationQueueService.Send(ctx, msg)
 		}