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

Merge pull request #1146 from tootsuite/fix-object-type-nil-exception

Fix nil#object_type error
parents 10459241 c9b23a93
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ class AtomSerializer
serialize_status_attributes(object, status)
append_element(object, 'link', nil, rel: :alternate, type: 'text/html', href: TagManager.instance.url_for(status))
append_element(object, 'thr:in-reply-to', nil, ref: TagManager.instance.uri_for(status.thread), href: TagManager.instance.url_for(status.thread)) if status.reply?
append_element(object, 'thr:in-reply-to', nil, ref: TagManager.instance.uri_for(status.thread), href: TagManager.instance.url_for(status.thread)) if status.reply? && !status.thread.nil?
object
end
......
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