diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-05-18 15:58:18 +0200 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-05-18 15:58:18 +0200 |
commit | beb7b0ef07f880b6eecc01d04980b38ba8521a81 (patch) | |
tree | 44ce9731d05b18a24d25582394bb3d46f1a4779c /test/web/ostatus | |
parent | 0da6ade619b08ab543644a5629c347f65db09e63 (diff) | |
download | pleroma-beb7b0ef07f880b6eecc01d04980b38ba8521a81.tar.gz pleroma-beb7b0ef07f880b6eecc01d04980b38ba8521a81.zip |
Handle incoming tags.
Diffstat (limited to 'test/web/ostatus')
-rw-r--r-- | test/web/ostatus/ostatus_test.exs | 7 |
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{ |