Make follow requests federate
This commit is contained in:
parent
d551e43a9b
commit
149887a0ff
25 changed files with 148 additions and 61 deletions
8
app/services/concerns/stream_entry_renderer.rb
Normal file
8
app/services/concerns/stream_entry_renderer.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
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])
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue