about summary refs log tree commit diff
path: root/app/services/concerns
diff options
context:
space:
mode:
authorShel R <Yiskah.Raphen@gmail.com>2017-04-07 22:53:42 -0400
committerGitHub <noreply@github.com>2017-04-07 22:53:42 -0400
commit3c5b0c55cb0dacc8471bcab98147dc86d5df12ed (patch)
treed9debdce95dec993c4e69bf966876c3775db59ea /app/services/concerns
parent8a4ff30ceb4a81a215c1aebf404dd8776fde3c02 (diff)
parent0dcf3c6abebfab4619f8c47785e821abe339dba1 (diff)
Merge branch 'master' into master
Diffstat (limited to 'app/services/concerns')
-rw-r--r--app/services/concerns/stream_entry_renderer.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/concerns/stream_entry_renderer.rb b/app/services/concerns/stream_entry_renderer.rb
index a4255daea..ef176d8a6 100644
--- a/app/services/concerns/stream_entry_renderer.rb
+++ b/app/services/concerns/stream_entry_renderer.rb
@@ -2,7 +2,6 @@
 
 module StreamEntryRenderer
   def stream_entry_to_xml(stream_entry)
-    renderer = StreamEntriesController.renderer.new(method: 'get', http_host: Rails.configuration.x.local_domain, https: Rails.configuration.x.use_https)
-    renderer.render(:show, assigns: { stream_entry: stream_entry }, formats: [:atom])
+    AtomSerializer.render(AtomSerializer.new.entry(stream_entry, true))
   end
 end