diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-11 12:46:50 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:17 -0500 |
commit | 163bc1a706e9a94687d28c885c1ff02089498b94 (patch) | |
tree | 5ea1d2afcc87b216763d33f3590f15150498837b /app/controllers/api/v1/polls | |
parent | 351b3819b29b316136553e1f88032a9df9a7a731 (diff) |
[Privacy] Check permissions of boosts and dereference boosts before sending to public timelines
Diffstat (limited to 'app/controllers/api/v1/polls')
-rw-r--r-- | app/controllers/api/v1/polls/votes_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/api/v1/polls/votes_controller.rb b/app/controllers/api/v1/polls/votes_controller.rb index 513b937ef..91ca96ef0 100644 --- a/app/controllers/api/v1/polls/votes_controller.rb +++ b/app/controllers/api/v1/polls/votes_controller.rb @@ -17,6 +17,7 @@ class Api::V1::Polls::VotesController < Api::BaseController def set_poll @poll = Poll.attached.find(params[:poll_id]) authorize @poll.status, :show? + authorize @poll.status.reblog, :show? if @poll.status.reblog? rescue Mastodon::NotPermittedError not_found end |