diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-08-18 01:03:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-18 01:03:18 +0200 |
commit | 40c45f5dd958aa1319b4e8cb664e6b4cac029526 (patch) | |
tree | bab31e85e1cbdaa50695e52595302042b361f087 /app/lib/ostatus/atom_serializer.rb | |
parent | efec02f1538adc7f75ba9ca3716ea25b3f2ef4df (diff) |
Put ActivityPub alternate link into Atom, prefer it when processing Atom (#4623)
Diffstat (limited to 'app/lib/ostatus/atom_serializer.rb')
-rw-r--r-- | app/lib/ostatus/atom_serializer.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/lib/ostatus/atom_serializer.rb b/app/lib/ostatus/atom_serializer.rb index 0d62361be..92a16d228 100644 --- a/app/lib/ostatus/atom_serializer.rb +++ b/app/lib/ostatus/atom_serializer.rb @@ -343,6 +343,8 @@ class OStatus::AtomSerializer end def serialize_status_attributes(entry, status) + append_element(entry, 'link', nil, rel: :alternate, type: 'application/activity+json', href: ActivityPub::TagManager.instance.uri_for(status)) if status.account.local? + append_element(entry, 'summary', status.spoiler_text, 'xml:lang': status.language) if status.spoiler_text? append_element(entry, 'content', Formatter.instance.format(status).to_str, type: 'html', 'xml:lang': status.language) |