commit: 6258c6b6b3f10b48c5ada457ed7042f7c97c1ffc
parent: 7f3ce5c1a0ea9e7ea960b06ca5f40f4cee4b9715
Author: Roger Braun <roger@rogerbraun.net>
Date: Thu, 14 Sep 2017 08:38:48 +0200
MastoAPI: Also return text_url in attachments.
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -73,6 +73,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
url: href,
remote_url: href,
preview_url: href,
+ text_url: href,
type: type
}
end
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs
@@ -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})