about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-04-07 13:05:34 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-04-07 13:05:34 +0200
commit8a6d8de60ac573f5b97bfe52f91f5a9e8e09fadf (patch)
tree617a54f763b922ef49f26bf01d3cbed4bd9f0198 /app
parent624a9a7136159d460228a0c2f5df18a9ead3b7f2 (diff)
Fix nil#object_type error
Diffstat (limited to 'app')
-rw-r--r--app/lib/atom_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/atom_serializer.rb b/app/lib/atom_serializer.rb
index 4ce0f4513..be1cced8b 100644
--- a/app/lib/atom_serializer.rb
+++ b/app/lib/atom_serializer.rb
@@ -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