question_validator: fix for mastodon poll expiration
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Mon, 15 Jun 2020 03:18:30 +0000 (05:18 +0200)
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>
Wed, 15 Jul 2020 09:39:56 +0000 (11:39 +0200)
commit173f69c854adf966d52b3767c4de43a0b1ce5b00
tree249201952994273a16a100544d44fc7f98f39fdb
parent47ba796f415740c443cd8477c121280656b13032
question_validator: fix for mastodon poll expiration

Mastodon activities do not have a "closed" field, this could be seen on
https://pouet.it/users/lanodan_tmp/statuses/104345126997708380
which runs Mastodon 3.1.4 (SDF runs 3.1.2)
lib/pleroma/web/activity_pub/object_validators/question_validator.ex
lib/pleroma/web/mastodon_api/views/poll_view.ex
test/fixtures/mastodon-question-activity.json