diff options
author | Eugen <eugen@zeonfederated.com> | 2017-04-16 02:40:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-16 02:40:36 +0200 |
commit | 95bcbaa4340fe54954c2f15300cbc585d4468c8d (patch) | |
tree | 0191e79240f8d14775e2d85834d3b94916a4f792 /app/lib | |
parent | 911338bdccd357b3d9985e4d9424494d6bd3a73d (diff) |
Fix #1852 - Ensure feeds have valid <title> tags (#1875)
Diffstat (limited to 'app/lib')
-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 69e1f153c..180b9bb82 100644 --- a/app/lib/atom_serializer.rb +++ b/app/lib/atom_serializer.rb @@ -39,7 +39,7 @@ class AtomSerializer add_namespaces(feed) append_element(feed, 'id', account_url(account, format: 'atom')) - append_element(feed, 'title', account.display_name) + append_element(feed, 'title', account.display_name.presence || account.username) append_element(feed, 'subtitle', account.note) append_element(feed, 'updated', account.updated_at.iso8601) append_element(feed, 'logo', full_asset_url(account.avatar.url(:original))) |