little refactor and tests
authorAlexander Strizhakov <alex.strizhakov@gmail.com>
Mon, 25 Jan 2021 16:46:36 +0000 (19:46 +0300)
committerAlexander Strizhakov <alex.strizhakov@gmail.com>
Mon, 25 Jan 2021 16:46:36 +0000 (19:46 +0300)
commit3f3d64acbfe0f8219911cb053e7fdab25137a23a
tree3df2b16e8e6e92ad298993839825fcfa61fc0fa6
parent6bfd497f4afeb4182cc865087e6f4863bc48a4f4
little refactor and tests

for voted & own_votes fields in polls
lib/pleroma/web/mastodon_api/views/poll_view.ex
test/pleroma/web/mastodon_api/controllers/poll_controller_test.exs
test/pleroma/web/mastodon_api/views/poll_view_test.exs