diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-04-20 02:53:07 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:22 -0500 |
commit | bb9aa16284dd5d36e6c1931f483eb44debfdb1bc (patch) | |
tree | 95fef5d9fd37f2c9f9da9b565a1d947c550371bb /app | |
parent | 87f4b4d230454d4baa7116e55d9aee42199eeb9b (diff) |
Make sure `rekey` parameter exists before complaining.
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/statuses_controller.rb | 1 |
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' |