diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-07-02 06:28:21 +0200 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2018-07-12 01:57:25 +0200 |
commit | 7a351cb36f64ae98fa3d28d5133fa0a49d376659 (patch) | |
tree | 04225b645bfd02512491af4f01a6015e572436ba /lib | |
parent | d386e8a8253aecbd7a8f951f4624cc4943280125 (diff) | |
download | pleroma-7a351cb36f64ae98fa3d28d5133fa0a49d376659.tar.gz |
[Pleroma.Web.MastodonAPI.StatusView]: Fill the url field for statuses
Closes: https://git.pleroma.social/pleroma/pleroma/issues/231
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex index 59898457b..39abb4c6b 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -54,8 +54,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do %{ id: to_string(activity.id), uri: object, - # TODO: This might be wrong, check with mastodon. - url: nil, + url: object, account: AccountView.render("account.json", %{user: user}), in_reply_to_id: nil, in_reply_to_account_id: nil, |