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

@ -80,7 +80,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
%{
id: activity.id,
uri: object["id"],
url: object["external_url"],
url: object["external_url"] || object["id"],
account: AccountView.render("account.json", %{user: user}),
in_reply_to_id: reply_to && reply_to.id,
in_reply_to_account_id: reply_to_user && reply_to_user.id,