about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-08-18 02:29:12 +0200
committerGitHub <noreply@github.com>2017-08-18 02:29:12 +0200
commit10489b4e4ab75c72f3fb49761cb7e08151752a6e (patch)
tree3c7a60a37776e5d41567a0aa1b4971fca0e6e8ca
parent40c45f5dd958aa1319b4e8cb664e6b4cac029526 (diff)
If url attribute not present in Note, fallback to id attribute (#4629)
-rw-r--r--app/lib/activitypub/activity/create.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb
index de9c47d5c..77d66fba3 100644
--- a/app/lib/activitypub/activity/create.rb
+++ b/app/lib/activitypub/activity/create.rb
@@ -32,7 +32,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
   def status_params
     {
       uri: @object['id'],
-      url: @object['url'],
+      url: @object['url'] || @object['id'],
       account: @account,
       text: text_from_content || '',
       language: language_from_content,