about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-04-20 02:53:07 -0500
committermultiple creatures <dev@multiple-creature.party>2019-05-21 03:16:22 -0500
commitbb9aa16284dd5d36e6c1931f483eb44debfdb1bc (patch)
tree95fef5d9fd37f2c9f9da9b565a1d947c550371bb /app
parent87f4b4d230454d4baa7116e55d9aee42199eeb9b (diff)
Make sure `rekey` parameter exists before complaining.
Diffstat (limited to 'app')
-rw-r--r--app/controllers/statuses_controller.rb1
1 files changed, 1 insertions, 0 deletions
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'