[Pleroma.Web.MastodonAPI.StatusView]: Fill the url field for statuses
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Mon, 2 Jul 2018 04:28:21 +0000 (06:28 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Wed, 11 Jul 2018 23:57:25 +0000 (01:57 +0200)
Closes: https://git.pleroma.social/pleroma/pleroma/issues/231
lib/pleroma/web/mastodon_api/views/status_view.ex

index 59898457b73aee226df473ccdbeb48961c7d155a..39abb4c6b4cfc6951bbca5205c4252e7aed30c6a 100644 (file)
@@ -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,