Remove un-needed Poll.attached scope (#33368)
This commit is contained in:
@@ -15,7 +15,7 @@ class Api::V1::Polls::VotesController < Api::BaseController
|
||||
private
|
||||
|
||||
def set_poll
|
||||
@poll = Poll.attached.find(params[:poll_id])
|
||||
@poll = Poll.find(params[:poll_id])
|
||||
authorize @poll.status, :show?
|
||||
rescue Mastodon::NotPermittedError
|
||||
not_found
|
||||
|
||||
@@ -15,7 +15,7 @@ class Api::V1::PollsController < Api::BaseController
|
||||
private
|
||||
|
||||
def set_poll
|
||||
@poll = Poll.attached.find(params[:id])
|
||||
@poll = Poll.find(params[:id])
|
||||
authorize @poll.status, :show?
|
||||
rescue Mastodon::NotPermittedError
|
||||
not_found
|
||||
|
||||
Reference in New Issue
Block a user