diff options
author | Maksim Pechnikov <parallel588@gmail.com> | 2018-12-06 21:50:34 +0300 |
---|---|---|
committer | Maksim Pechnikov <parallel588@gmail.com> | 2018-12-09 11:24:46 +0300 |
commit | 9442588ae9b049ae1b152b082842e4c13fa49ebb (patch) | |
tree | 85e0e371efe0927f8f452dc69ea773d9f6cc2561 /test | |
parent | 5436aaad4f5c60c93c35a827d7e7fb93903b9e0b (diff) | |
download | pleroma-9442588ae9b049ae1b152b082842e4c13fa49ebb.tar.gz pleroma-9442588ae9b049ae1b152b082842e4c13fa49ebb.zip |
fix hashtags in api response
Diffstat (limited to 'test')
-rw-r--r-- | test/web/mastodon_api/status_view_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs index 9e69b3189..d10d59d6c 100644 --- a/test/web/mastodon_api/status_view_test.exs +++ b/test/web/mastodon_api/status_view_test.exs @@ -24,7 +24,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do note |> Map.put(:data, data) - user = User.get_cached_by_ap_id(note.data["actor"]) + User.get_cached_by_ap_id(note.data["actor"]) status = StatusView.render("status.json", %{activity: note}) @@ -62,7 +62,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do visibility: "public", media_attachments: [], mentions: [], - tags: [], + tags: note.data["object"]["tag"], application: %{ name: "Web", website: nil |