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
This commit is contained in:
parent
60f3230a05
commit
b5a9c6b3d2
3 changed files with 85 additions and 41 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue