Initial poll refresh support
authorrinpatch <rinpatch@sdf.org>
Wed, 18 Sep 2019 15:13:21 +0000 (18:13 +0300)
committerAriadne Conill <ariadne@dereferenced.org>
Sun, 6 Oct 2019 14:53:11 +0000 (14:53 +0000)
commiteae9a6d34d88698ba19ba2461374cb60b1c4a33f
treee22d426a941c3602d79a78f367aa821dbbb09b29
parent294e08cb65940ff193d6920e576f56718a5623f4
Initial poll refresh support

Implement refreshing the object with an interval and call the function
when getting the poll.
lib/pleroma/object.ex
lib/pleroma/object/fetcher.ex
lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex
test/fixtures/tesla_mock/poll_modified.json [new file with mode: 0644]
test/fixtures/tesla_mock/poll_original.json [new file with mode: 0644]
test/fixtures/tesla_mock/rin.json [new file with mode: 0644]
test/object_test.exs
test/support/http_request_mock.ex