From bb9aa16284dd5d36e6c1931f483eb44debfdb1bc Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 20 Apr 2019 02:53:07 -0500 Subject: Make sure `rekey` parameter exists before complaining. --- app/controllers/statuses_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app') diff --git a/app/controllers/statuses_controller.rb b/app/controllers/statuses_controller.rb index 299fe0cda..c8c8e52e4 100644 --- a/app/controllers/statuses_controller.rb +++ b/app/controllers/statuses_controller.rb @@ -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' -- cgit