MastoAPI: Also return text_url in attachments.
authorRoger Braun <roger@rogerbraun.net>
Thu, 14 Sep 2017 06:38:48 +0000 (08:38 +0200)
committerRoger Braun <roger@rogerbraun.net>
Thu, 14 Sep 2017 06:38:48 +0000 (08:38 +0200)
lib/pleroma/web/mastodon_api/views/status_view.ex
test/web/mastodon_api/status_view_test.exs

index a172875df320f9087208ba9ac15004c273bde98b..7c8af994b2a0d138b21414158e2a6dee4c13ac27 100644 (file)
@@ -73,6 +73,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
       url: href,
       remote_url: href,
       preview_url: href,
+      text_url: href,
       type: type
     }
   end
index 9fa95234bb7fb3bdb692bb706d351836a4dd5303..3941e30197a5f7b30e3c15e1b8748cf8a78b16e9 100644 (file)
@@ -71,7 +71,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
       type: "image",
       url: "someurl",
       remote_url: "someurl",
-      preview_url: "someurl"
+      preview_url: "someurl",
+      text_url: "someurl"
     }
 
     assert expected == StatusView.render("attachment.json", %{attachment: object})