Browse Source

Fix #20, reblogs in Atom should be formatted correctly now

closed-social-v3
Eugen Rochko 8 years ago
parent
commit
78137929e6
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/helpers/atom_builder_helper.rb

+ 5
- 1
app/helpers/atom_builder_helper.rb View File

@ -190,9 +190,13 @@ module AtomBuilderHelper
link_avatar xml, stream_entry.target link_avatar xml, stream_entry.target
end end
# Statuses have content
# Statuses have content and author
if [:note, :comment].include? stream_entry.target.object_type if [:note, :comment].include? stream_entry.target.object_type
content xml, conditionally_formatted(stream_entry.target) content xml, conditionally_formatted(stream_entry.target)
author(xml) do
include_author xml, stream_entry.target.account
end
end end
end end
end end

Loading…
Cancel
Save