aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-06-26 05:39:35 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-06-26 05:48:25 +0200
commit27c33f216ad250b60d44fe0662c3be3c4cee987e (patch)
tree9a0eb58ef6d571ef8e2b82c3d327c1a06f7cea42 /test
parentd6c958b4c22ee7658ee8b7b11fc6ddede1082cca (diff)
downloadpleroma-27c33f216ad250b60d44fe0662c3be3c4cee987e.tar.gz
activity_draft: Add source field
Diffstat (limited to 'test')
-rw-r--r--test/web/common_api/common_api_test.exs2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/web/common_api/common_api_test.exs b/test/web/common_api/common_api_test.exs
index 6bd26050e..cbdd994a9 100644
--- a/test/web/common_api/common_api_test.exs
+++ b/test/web/common_api/common_api_test.exs
@@ -445,6 +445,7 @@ defmodule Pleroma.Web.CommonAPITest do
object = Object.normalize(activity)
assert object.data["content"] == "<p><b>2hu</b></p>alert(&#39;xss&#39;)"
+ assert object.data["source"] == post
end
test "it filters out obviously bad tags when accepting a post as Markdown" do
@@ -461,6 +462,7 @@ defmodule Pleroma.Web.CommonAPITest do
object = Object.normalize(activity)
assert object.data["content"] == "<p><b>2hu</b></p>alert(&#39;xss&#39;)"
+ assert object.data["source"] == post
end
test "it does not allow replies to direct messages that are not direct messages themselves" do