Show the url advertised in the Activity in the Status JSON response

This commit is contained in:
Sergey Suprunenko 2019-07-24 19:28:21 +00:00 committed by kaniini
commit b20020da16
6 changed files with 83 additions and 1 deletions

View file

@ -222,7 +222,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
if user.local do
Pleroma.Web.Router.Helpers.o_status_url(Pleroma.Web.Endpoint, :notice, activity)
else
object.data["external_url"] || object.data["id"]
object.data["url"] || object.data["external_url"] || object.data["id"]
end
%{