about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-08-26 19:55:10 +0200
committerGitHub <noreply@github.com>2017-08-26 19:55:10 +0200
commit0d5d11eeff048a5022a6eef68d299856f5bb9860 (patch)
tree04c60da71049a85fbdbccdb6e3e4f5c5f0dc4ae0 /app/helpers
parent0397c58b61d8a364ff488fc5631bfc751903c242 (diff)
Add _:inReplyToAtomUri to ActivityPub (#4702)
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/jsonld_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/jsonld_helper.rb b/app/helpers/jsonld_helper.rb
index 09446c8be..d82a07332 100644
--- a/app/helpers/jsonld_helper.rb
+++ b/app/helpers/jsonld_helper.rb
@@ -10,7 +10,7 @@ module JsonLdHelper
   end
 
   def value_or_id(value)
-    value.is_a?(String) ? value : value['id']
+    value.is_a?(String) || value.nil? ? value : value['id']
   end
 
   def supported_context?(json)