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

lolsob-rspec
Eugen Rochko 2017-08-18 02:29:12 +02:00 committed by GitHub
parent ce7e12bd72
commit 75afe35f09
1 changed files with 1 additions and 1 deletions

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,