diff options
author | Roger Braun <roger@rogerbraun.net> | 2017-10-31 17:30:46 +0100 |
---|---|---|
committer | Roger Braun <roger@rogerbraun.net> | 2017-10-31 17:30:46 +0100 |
commit | 4cbf17dac6c9501e9fc711d04540da9afbcad717 (patch) | |
tree | f95148cb4f2e1857943a1c0da16cc09f5da0351d /test | |
parent | 4dcbb64f19723334a9ef66b4ce71856d30e32796 (diff) | |
download | pleroma-4cbf17dac6c9501e9fc711d04540da9afbcad717.tar.gz pleroma-4cbf17dac6c9501e9fc711d04540da9afbcad717.zip |
Save cws in the activitypub data.
Diffstat (limited to 'test')
-rw-r--r-- | test/web/ostatus/ostatus_test.exs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/web/ostatus/ostatus_test.exs b/test/web/ostatus/ostatus_test.exs index 95038b73c..de01612b3 100644 --- a/test/web/ostatus/ostatus_test.exs +++ b/test/web/ostatus/ostatus_test.exs @@ -85,7 +85,7 @@ defmodule Pleroma.Web.OStatusTest do assert activity.data["type"] == "Create" assert activity.data["object"]["type"] == "Note" assert activity.data["object"]["actor"] == "https://mastodon.social/users/lambadalambda" - assert String.contains?(activity.data["object"]["content"], "technologic") + assert activity.data["object"]["summary"] == "technologic" assert "https://www.w3.org/ns/activitystreams#Public" in activity.data["to"] end @@ -93,7 +93,7 @@ defmodule Pleroma.Web.OStatusTest do incoming = File.read!("test/fixtures/cw_retweet.xml") {:ok, [[activity, retweeted_activity]]} = OStatus.handle_incoming(incoming) - assert String.contains?(retweeted_activity.data["object"]["content"], "Hey.") + assert retweeted_activity.data["object"]["summary"] == "Hey." end test "handle incoming notes - GS, subscription, reply" do |