about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-04-07 12:21:00 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-04-07 12:21:00 +0200
commit624a9a7136159d460228a0c2f5df18a9ead3b7f2 (patch)
tree388a06a1eb6ad4139b0e932d185744bfb69d7e65 /app
parent1c351709bc45611c2ed48fb8539c2b27ab51b6fe (diff)
Re-add forgotten <author> element on standalone <entry>
Diffstat (limited to 'app')
-rw-r--r--app/lib/atom_serializer.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/lib/atom_serializer.rb b/app/lib/atom_serializer.rb
index 4e01c3d43..4ce0f4513 100644
--- a/app/lib/atom_serializer.rb
+++ b/app/lib/atom_serializer.rb
@@ -68,6 +68,9 @@ class AtomSerializer
     append_element(entry, 'published', stream_entry.created_at.iso8601)
     append_element(entry, 'updated', stream_entry.updated_at.iso8601)
     append_element(entry, 'title', stream_entry&.status&.title)
+
+    entry << author(stream_entry.account) if root
+
     append_element(entry, 'activity:object-type', TagManager::TYPES[stream_entry.object_type])
     append_element(entry, 'activity:verb', TagManager::VERBS[stream_entry.verb])