logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: b2340b5b776d243f6cf12971393783cc3b7c2dc2
parent 766edfe5b2b19f4819704540341b8fcc92f133bd
Author: Mark Felder <feld@feld.me>
Date:   Mon, 30 Sep 2024 14:45:13 -0400

Permit backdating the poll closed timestamp

Diffstat:

Mtest/support/factory.ex3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/test/support/factory.ex b/test/support/factory.ex @@ -241,6 +241,7 @@ defmodule Pleroma.Factory do def question_factory(attrs \\ %{}) do user = attrs[:user] || insert(:user) + closed = attrs[:closed] || DateTime.utc_now() |> DateTime.add(86_400) |> DateTime.to_iso8601() data = %{ "id" => Pleroma.Web.ActivityPub.Utils.generate_object_id(), @@ -251,7 +252,7 @@ defmodule Pleroma.Factory do "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(), + "closed" => closed, "content" => "Which flavor of ice cream do you prefer?", "oneOf" => [ %{