summaryrefslogtreecommitdiff
path: root/app/services/issues/clone_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/issues/clone_service.rb')
-rw-r--r--app/services/issues/clone_service.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/services/issues/clone_service.rb b/app/services/issues/clone_service.rb
index 6df32f1104c..cb42334fe32 100644
--- a/app/services/issues/clone_service.rb
+++ b/app/services/issues/clone_service.rb
@@ -55,9 +55,13 @@ module Issues
new_params = original_entity.serializable_hash.symbolize_keys.merge(new_params)
+ # spam checking is not necessary, as no new content is being created. Passing nil for
+ # spam_params will cause SpamActionService to skip checking and return a success response.
+ spam_params = nil
+
# Skip creation of system notes for existing attributes of the issue. The system notes of the old
# issue are copied over so we don't want to end up with duplicate notes.
- CreateService.new(project: target_project, current_user: current_user, params: new_params).execute(skip_system_notes: true)
+ CreateService.new(project: target_project, current_user: current_user, params: new_params, spam_params: spam_params).execute(skip_system_notes: true)
end
def queue_copy_designs