Make sure `rekey` parameter exists before complaining.
parent
87f4b4d230
commit
bb9aa16284
|
@ -203,6 +203,7 @@ class StatusesController < ApplicationController
|
|||
end
|
||||
|
||||
def handle_sharekey_change
|
||||
return if params[:rekey].nil?
|
||||
raise Mastodon::NotPermittedError unless current_account.id == @status.account_id
|
||||
case params[:rekey]
|
||||
when '1'
|
||||
|
|
Loading…
Reference in New Issue