diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-16 13:42:19 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-16 13:42:19 +0300 |
commit | 84d1bd786125c1c14a3ba5f63e38a4cc736a9027 (patch) | |
tree | f550fa965f507077e20dbb6d61a8269a99ef7107 /app/services/spam | |
parent | 3a105e36e689f7b75482236712f1a47fd5a76814 (diff) |
Add latest changes from gitlab-org/gitlab@16-8-stable-eev16.8.0-rc42
Diffstat (limited to 'app/services/spam')
-rw-r--r-- | app/services/spam/spam_verdict_service.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/services/spam/spam_verdict_service.rb b/app/services/spam/spam_verdict_service.rb index 2d4bebc8b2b..f69ee255e01 100644 --- a/app/services/spam/spam_verdict_service.rb +++ b/app/services/spam/spam_verdict_service.rb @@ -70,7 +70,8 @@ module Spam result = spamcheck_client.spam?(spammable: target, user: user, context: context, extra_features: extra_features) if result.evaluated? - Abuse::TrustScore.create!(user: user, score: result.score, source: :spamcheck) + correlation_id = Labkit::Correlation::CorrelationId.current_id || '' + Abuse::TrustScoreWorker.perform_async(user.id, :spamcheck, result.score, correlation_id) end result.verdict |