From 6c12eed0fc416fab1a6ccdc2921fb7fe9ef8beef Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 7 Jul 2019 13:42:39 +0200 Subject: [PATCH] Fix poll processing for Pleroma --- activitypub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activitypub.py b/activitypub.py index d293ba3..b46a36f 100644 --- a/activitypub.py +++ b/activitypub.py @@ -479,7 +479,7 @@ class MicroblogPubBackend(Backend): question = create.get_object() if question.has_type(ap.ActivityType.QUESTION): now = datetime.now(timezone.utc) - dt = parser.parse(question.closed or question.endTime) + dt = parser.parse(question.closed or question.endTime).astimezone(timezone.utc) minutes = int((dt - now).total_seconds() / 60) Tasks.fetch_remote_question(create.id, minutes)