MastoAPI: Always return an url for statuses.

External url if available, id if not.
This commit is contained in:
Roger Braun 2017-10-31 14:40:12 +01:00
commit ce7f9f527c
2 changed files with 2 additions and 2 deletions

View file

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