mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
If url attribute not present in Note, fallback to id attribute (#4629)
This commit is contained in:
parent
40c45f5dd9
commit
10489b4e4a
@ -32,7 +32,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
|||||||
def status_params
|
def status_params
|
||||||
{
|
{
|
||||||
uri: @object['id'],
|
uri: @object['id'],
|
||||||
url: @object['url'],
|
url: @object['url'] || @object['id'],
|
||||||
account: @account,
|
account: @account,
|
||||||
text: text_from_content || '',
|
text: text_from_content || '',
|
||||||
language: language_from_content,
|
language: language_from_content,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user