summaryrefslogtreecommitdiff
path: root/test/web/ostatus/ostatus_test.exs
diff options
context:
space:
mode:
Diffstat (limited to 'test/web/ostatus/ostatus_test.exs')
-rw-r--r--test/web/ostatus/ostatus_test.exs7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/web/ostatus/ostatus_test.exs b/test/web/ostatus/ostatus_test.exs
index e38a195d9..6599b00b3 100644
--- a/test/web/ostatus/ostatus_test.exs
+++ b/test/web/ostatus/ostatus_test.exs
@@ -46,6 +46,13 @@ defmodule Pleroma.Web.OStatusTest do
assert activity.data["object"]["attachment"] |> length == 2
end
+ test "handle incoming notes with tags" do
+ incoming = File.read!("test/fixtures/ostatus_incoming_post_tag.xml")
+ {:ok, [activity]} = OStatus.handle_incoming(incoming)
+
+ assert activity.data["object"]["tag"] == ["nsfw"]
+ end
+
test "handle incoming notes - Mastodon, salmon, reply" do
# It uses the context of the replied to object
Repo.insert!(%Object{