diff options
author | lain <lain@soykaf.club> | 2018-02-18 14:14:16 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-02-18 14:14:16 +0100 |
commit | 539340d914e5c124d3583abe1ee4e6a69620b873 (patch) | |
tree | 1482044daf664a430f7f8d721d588004700ded48 /test | |
parent | 20e6190ead59eb9bd83887b8239cab73c17a961b (diff) | |
download | pleroma-539340d914e5c124d3583abe1ee4e6a69620b873.tar.gz pleroma-539340d914e5c124d3583abe1ee4e6a69620b873.zip |
Handle sensitive property.
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/mastodon-post-activity.json | 2 | ||||
-rw-r--r-- | test/web/activity_pub/transmogrifier_test.exs | 1 |
2 files changed, 2 insertions, 1 deletions
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 |