From: Haelwenn (lanodan) Monnier Date: Mon, 2 Jul 2018 04:28:21 +0000 (+0200) Subject: [Pleroma.Web.MastodonAPI.StatusView]: Fill the url field for statuses X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=7a351cb36f64ae98fa3d28d5133fa0a49d376659;p=akkoma [Pleroma.Web.MastodonAPI.StatusView]: Fill the url field for statuses Closes: https://git.pleroma.social/pleroma/pleroma/issues/231 --- 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,