Skip to content
Snippets Groups Projects
Commit 10489b4e authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

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

parent 40c45f5d
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment