diff options
author | Sergey Suprunenko <suprunenko.s@gmail.com> | 2019-07-24 19:28:21 +0000 |
---|---|---|
committer | kaniini <ariadne@dereferenced.org> | 2019-07-24 19:28:21 +0000 |
commit | b20020da160404f6f668eec2a2a42aaa2b6a09b2 (patch) | |
tree | 453b14e77c37a00da1ed35eb6dd781cb46055d70 /lib | |
parent | acd20914ec5a2cedfcd6a7405a22b6453d951164 (diff) | |
download | pleroma-b20020da160404f6f668eec2a2a42aaa2b6a09b2.tar.gz |
Show the url advertised in the Activity in the Status JSON response
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index de9425959..80df9b2ac 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -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 %{ |