summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-11-17 15:01:38 +0100
committerlain <lain@soykaf.club>2020-11-17 15:01:38 +0100
commitfec1ed802ef44a700df27aa132146f79e9e4cd6d (patch)
tree6bbb39b647305521209bebbd7bdea3e4be012d1c /test/fixtures
parent81293e5aadd5f1dfe7f90f6a71f625ef86cf3359 (diff)
parent9b9afe6b3fde77ef005629fe2d198160c8f465a1 (diff)
downloadpleroma-fec1ed802ef44a700df27aa132146f79e9e4cd6d.tar.gz
pleroma-fec1ed802ef44a700df27aa132146f79e9e4cd6d.zip
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into feature/local-only-scope
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/modules/good_mrf.ex19
-rw-r--r--test/fixtures/spoofed-object.json26
2 files changed, 45 insertions, 0 deletions
diff --git a/test/fixtures/modules/good_mrf.ex b/test/fixtures/modules/good_mrf.ex
new file mode 100644
index 000000000..39d0f14ec
--- /dev/null
+++ b/test/fixtures/modules/good_mrf.ex
@@ -0,0 +1,19 @@
+defmodule Fixtures.Modules.GoodMRF do
+ @behaviour Pleroma.Web.ActivityPub.MRF
+
+ @impl true
+ def filter(a), do: {:ok, a}
+
+ @impl true
+ def describe, do: %{}
+
+ @impl true
+ def config_description do
+ %{
+ key: :good_mrf,
+ related_policy: "Fixtures.Modules.GoodMRF",
+ label: "Good MRF",
+ description: "Some description"
+ }
+ end
+end
diff --git a/test/fixtures/spoofed-object.json b/test/fixtures/spoofed-object.json
new file mode 100644
index 000000000..91e34307d
--- /dev/null
+++ b/test/fixtures/spoofed-object.json
@@ -0,0 +1,26 @@
+{
+ "@context": [
+ "https://www.w3.org/ns/activitystreams",
+ "https://patch.cx/schemas/litepub-0.1.jsonld",
+ {
+ "@language": "und"
+ }
+ ],
+ "actor": "https://patch.cx/users/rin",
+ "attachment": [],
+ "attributedTo": "https://patch.cx/users/rin",
+ "cc": [
+ "https://patch.cx/users/rin/followers"
+ ],
+ "content": "Oracle Corporation (NYSE: ORCL) today announced that it has signed a definitive merger agreement to acquire Pleroma AG (FRA: PLA), for $26.50 per share (approximately $10.3 billion). The transaction has been approved by the boards of directors of both companies and should close by early January.",
+ "context": "https://patch.cx/contexts/spoof",
+ "id": "https://patch.cx/objects/spoof",
+ "published": "2020-10-23T18:02:06.038856Z",
+ "sensitive": false,
+ "summary": "Oracle buys Pleroma",
+ "tag": [],
+ "to": [
+ "https://www.w3.org/ns/activitystreams#Public"
+ ],
+ "type": "Note"
+}