Make sure `rekey` parameter exists before complaining.

staging
multiple creatures 2019-04-20 02:53:07 -05:00
parent 87f4b4d230
commit bb9aa16284
1 changed files with 1 additions and 0 deletions

View File

@ -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'