Remove un-needed Poll.attached
scope (#33368)
This commit is contained in:
parent
b648c64e2e
commit
f35de1ed0d
4 changed files with 2 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue