diff --git a/go-backend/internal/services/moderation_service.go b/go-backend/internal/services/moderation_service.go index 481168e..788d1c7 100644 --- a/go-backend/internal/services/moderation_service.go +++ b/go-backend/internal/services/moderation_service.go @@ -362,12 +362,6 @@ func (s *ModerationService) FlagPost(ctx context.Context, postID uuid.UUID, scor // Create user violation record if we have the user ID if userID != uuid.Nil { - scoresMap := map[string]float64{ - "hate": scores.Hate, - "greed": scores.Greed, - "delusion": scores.Delusion, - } - // This would require the AppealService, but for now we'll create a simple violation record violationQuery := ` SELECT create_user_violation($1, $2, $3, $4) @@ -406,12 +400,6 @@ func (s *ModerationService) FlagComment(ctx context.Context, commentID uuid.UUID // Create user violation record if we have the user ID if userID != uuid.Nil { - scoresMap := map[string]float64{ - "hate": scores.Hate, - "greed": scores.Greed, - "delusion": scores.Delusion, - } - // This would require the AppealService, but for now we'll create a simple violation record violationQuery := ` SELECT create_user_violation($1, $2, $3, $4)