summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorlambda <pleromagit@rogerbraun.net>2018-12-10 19:05:16 +0000
committerlambda <pleromagit@rogerbraun.net>2018-12-10 19:05:16 +0000
commitff10b9927b11bbf42d623fd5cb18039d0db9aa3f (patch)
tree26f600032f69b12d9589f396a3434f55b2dfdd1e /test
parent6786ad3d983a37728654fccfa525498c77683cdc (diff)
parent068353ac0b36e6c391a49bae8b96faf4df3f0775 (diff)
downloadpleroma-ff10b9927b11bbf42d623fd5cb18039d0db9aa3f.tar.gz
pleroma-ff10b9927b11bbf42d623fd5cb18039d0db9aa3f.zip
Merge branch 'support/bugfix_272' into 'develop'
[#272] fix hashtags in api See merge request pleroma/pleroma!510
Diffstat (limited to 'test')
-rw-r--r--test/web/mastodon_api/status_view_test.exs4
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