Browse Source

If url attribute not present in Note, fallback to id attribute (#4629)

pull/4/head
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
10489b4e4a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/lib/activitypub/activity/create.rb

+ 1
- 1
app/lib/activitypub/activity/create.rb View File

@ -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,

Loading…
Cancel
Save