logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe
commit: 624a9a7136159d460228a0c2f5df18a9ead3b7f2
parent: 1c351709bc45611c2ed48fb8539c2b27ab51b6fe
Author: Eugen Rochko <eugen@zeonfederated.com>
Date:   Fri,  7 Apr 2017 12:21:00 +0200

Re-add forgotten <author> element on standalone <entry>

Diffstat:

Mapp/lib/atom_serializer.rb3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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])