From beb7b0ef07f880b6eecc01d04980b38ba8521a81 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Thu, 18 May 2017 15:58:18 +0200 Subject: Handle incoming tags. --- test/web/ostatus/ostatus_test.exs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/web') 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{ -- cgit v1.2.3