Fix poll processing for Pleroma
This commit is contained in:
parent
37d9add7f4
commit
6c12eed0fc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue