Drop unknown Delete message

This commit is contained in:
Thomas Sileo
2019-07-07 14:14:13 +02:00
parent 6c12eed0fc
commit 6daf8d6f16
2 changed files with 12 additions and 2 deletions

View File

@@ -479,7 +479,9 @@ 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).astimezone(timezone.utc)
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)