diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-07 13:09:53 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-03-17 07:39:15 +0100 |
commit | fd8394faae25b54c4d9ac485a0ce746cffec3a0f (patch) | |
tree | cb6d282e96e97421f365c62ed2ee0928f0586967 /app/services/issues/move_service.rb | |
parent | cd0f19450843b5b9245ae82302d3f9d9003cb899 (diff) | |
download | gitlab-ce-fd8394faae25b54c4d9ac485a0ce746cffec3a0f.tar.gz |
Move reference unfolder for GFM to separate class
Diffstat (limited to 'app/services/issues/move_service.rb')
-rw-r--r-- | app/services/issues/move_service.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/app/services/issues/move_service.rb b/app/services/issues/move_service.rb index a9448af4699..de12ea5c172 100644 --- a/app/services/issues/move_service.rb +++ b/app/services/issues/move_service.rb @@ -83,11 +83,8 @@ module Issues def rewrite_references(noteable) content = noteable_content(noteable).dup - context = { pipeline: :reference_unfold, - project: @project_old, new_project: @project_new } - - new_content = Banzai.render_result(content, context) - new_content[:output].to_s + unfolder = Gitlab::Gfm::ReferenceUnfolder.new(content, @project_old) + unfolder.unfold(@project_new) end def noteable_content(noteable) |