Render nice web push notifications for polls

This commit is contained in:
Mark Felder 2024-06-08 20:30:43 -04:00
commit 3211557f74
4 changed files with 42 additions and 0 deletions

View file

@ -249,6 +249,7 @@ defmodule Pleroma.Factory do
"cc" => [user.follower_address],
"context" => Pleroma.Web.ActivityPub.Utils.generate_context_id(),
"closed" => DateTime.utc_now() |> DateTime.add(86_400) |> DateTime.to_iso8601(),
"content" => "Which flavor of ice cream do you prefer?",
"oneOf" => [
%{
"type" => "Note",