From 95bcbaa4340fe54954c2f15300cbc585d4468c8d Mon Sep 17 00:00:00 2001 From: Eugen Date: Sun, 16 Apr 2017 02:40:36 +0200 Subject: [PATCH] Fix #1852 - Ensure feeds have valid tags (#1875) --- app/lib/atom_serializer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/atom_serializer.rb b/app/lib/atom_serializer.rb index 69e1f153..180b9bb8 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)))