Poll notification: trigger PollWorker through common_pipeline

This commit is contained in:
Alex Gleason 2021-07-18 10:49:57 -05:00
commit 0b1c05ca1e
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
3 changed files with 40 additions and 6 deletions

View file

@ -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",