MastoAPI: Always return an url for statuses.
External url if available, id if not.
This commit is contained in:
parent
f23edd2d6b
commit
ce7f9f527c
2 changed files with 2 additions and 2 deletions
|
|
@ -19,7 +19,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|
|||
expected = %{
|
||||
id: note.id,
|
||||
uri: note.data["object"]["id"],
|
||||
url: note.data["object"]["external_id"],
|
||||
url: note.data["object"]["id"],
|
||||
account: AccountView.render("account.json", %{user: user}),
|
||||
in_reply_to_id: nil,
|
||||
in_reply_to_account_id: nil,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue