diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-05-12 17:46:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-12 17:46:44 +0200 |
commit | b5a9c6b3d292abc7e47d8a6f830f6b5589c04862 (patch) | |
tree | 66daac049abc5e62452fd6ed3b45505306676d60 /app/lib/atom_serializer.rb | |
parent | 60f3230a05247a65f6dee346fd9ddaa24bc6f34d (diff) |
Prepend reblogs' wrapper content with "RT @original_author", (#3013)
so that when a reblog parse fails on another instance, it doesn't look like a misattributed/stolen text
Diffstat (limited to 'app/lib/atom_serializer.rb')
-rw-r--r-- | app/lib/atom_serializer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/atom_serializer.rb b/app/lib/atom_serializer.rb index db6bc4dd2..288a9cfad 100644 --- a/app/lib/atom_serializer.rb +++ b/app/lib/atom_serializer.rb @@ -337,7 +337,7 @@ class AtomSerializer def serialize_status_attributes(entry, status) append_element(entry, 'summary', Formatter.instance.format(status.proper, :spoiler_text, false).to_str, 'xml:lang': status.language, type: 'html') if status.spoiler_text? - append_element(entry, 'content', Formatter.instance.format(status.proper).to_str, type: 'html', 'xml:lang': status.language) + append_element(entry, 'content', Formatter.instance.format(status).to_str, type: 'html', 'xml:lang': status.language) status.mentions.each do |mentioned| append_element(entry, 'link', nil, rel: :mentioned, 'ostatus:object-type': TagManager::TYPES[:person], href: TagManager.instance.uri_for(mentioned.account)) |