Skip to content
Snippets Groups Projects
Commit c1729197 authored by Eugen's avatar Eugen Committed by GitHub
Browse files

Fix #1339 - better Atom titles (#1343)

parent 15d442cf
No related branches found
No related tags found
No related merge requests found
......@@ -67,7 +67,7 @@ class AtomSerializer
append_element(entry, 'id', TagManager.instance.unique_tag(stream_entry.created_at, stream_entry.activity_id, stream_entry.activity_type))
append_element(entry, 'published', stream_entry.created_at.iso8601)
append_element(entry, 'updated', stream_entry.updated_at.iso8601)
append_element(entry, 'title', stream_entry&.status&.title)
append_element(entry, 'title', stream_entry&.status&.title || 'Delete')
entry << author(stream_entry.account) if root
......
......@@ -75,7 +75,7 @@ class Status < ApplicationRecord
end
def title
content
reblog? ? "#{account.acct} shared a status by #{reblog.account.acct}" : "New status by #{account.acct}"
end
def hidden?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment