Initial poll refresh support
authorrinpatch <rinpatch@sdf.org>
Wed, 18 Sep 2019 15:13:21 +0000 (18:13 +0300)
committerrinpatch <rinpatch@sdf.org>
Wed, 18 Sep 2019 15:13:21 +0000 (18:13 +0300)
commit7ef575d11e46247d1f64dd09d992e532cb8c5c37
treeac36117dc974c4de2d64d6db22e047330ba993c9
parent40c968626dde499969d90f256d5ef6d1b1d5e2b4
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