aboutsummaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorAlex Gleason <alex@alexgleason.me>2021-07-18 10:49:57 -0500
committerAlex Gleason <alex@alexgleason.me>2021-07-18 11:10:23 -0500
commit0b1c05ca1e387d4a929dce3cac7214fdaf1c2444 (patch)
tree4a04f51e6c64068e1fddd09bc38c5423346deada /test/support
parent6a6e42c9bfe7e381cb72d685bd982e55edcf5d38 (diff)
downloadpleroma-0b1c05ca1e387d4a929dce3cac7214fdaf1c2444.tar.gz
Poll notification: trigger PollWorker through common_pipeline
Diffstat (limited to 'test/support')
-rw-r--r--test/support/factory.ex2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/support/factory.ex b/test/support/factory.ex
index e87e54e7b..b5232a1c8 100644
--- a/test/support/factory.ex
+++ b/test/support/factory.ex
@@ -208,10 +208,12 @@ defmodule Pleroma.Factory do
"id" => Pleroma.Web.ActivityPub.Utils.generate_object_id(),
"type" => "Question",
"actor" => user.ap_id,
+ "attributedTo" => user.ap_id,
"attachment" => [],
"to" => ["https://www.w3.org/ns/activitystreams#Public"],
"cc" => [user.follower_address],
"context" => Pleroma.Web.ActivityPub.Utils.generate_context_id(),
+ "closed" => DateTime.utc_now() |> DateTime.add(86_400) |> DateTime.to_iso8601(),
"oneOf" => [
%{
"type" => "Note",