From 539340d914e5c124d3583abe1ee4e6a69620b873 Mon Sep 17 00:00:00 2001 From: lain Date: Sun, 18 Feb 2018 14:14:16 +0100 Subject: Handle sensitive property. --- test/fixtures/mastodon-post-activity.json | 2 +- test/web/activity_pub/transmogrifier_test.exs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/fixtures/mastodon-post-activity.json b/test/fixtures/mastodon-post-activity.json index 448310b0b..693e0ce39 100644 --- a/test/fixtures/mastodon-post-activity.json +++ b/test/fixtures/mastodon-post-activity.json @@ -36,7 +36,7 @@ "inReplyTo": null, "inReplyToAtomUri": null, "published": "2018-02-12T14:08:20Z", - "sensitive": false, + "sensitive": true, "summary": "cw", "tag": [ { diff --git a/test/web/activity_pub/transmogrifier_test.exs b/test/web/activity_pub/transmogrifier_test.exs index 6271e200e..08f8e8206 100644 --- a/test/web/activity_pub/transmogrifier_test.exs +++ b/test/web/activity_pub/transmogrifier_test.exs @@ -33,6 +33,7 @@ defmodule Pleroma.Web.ActivityPub.TransmogrifierTest do ] assert object["actor"] == "http://mastodon.example.org/users/admin" assert object["attributedTo"] == "http://mastodon.example.org/users/admin" + assert object["sensitive"] == true end test "it works for incoming follow requests" do -- cgit v1.2.3