diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-05-01 18:24:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-01 18:24:42 +0200 |
commit | a41b3d0457451abf750ecd2e5576e4d516d8ab95 (patch) | |
tree | 9e2238c87c72ef0bdca8159e4beb886553cd8755 /app/controllers/oauth/tokens_controller.rb | |
parent | 252deefe3433d0cedafd973becd0d85b5182eb49 (diff) | |
parent | 26a51291c74e7f27bf5e97bec9cd415d7ed48246 (diff) |
Merge pull request #1760 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/controllers/oauth/tokens_controller.rb')
-rw-r--r-- | app/controllers/oauth/tokens_controller.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/oauth/tokens_controller.rb b/app/controllers/oauth/tokens_controller.rb index fa6d58f25..34087b20b 100644 --- a/app/controllers/oauth/tokens_controller.rb +++ b/app/controllers/oauth/tokens_controller.rb @@ -2,7 +2,8 @@ class Oauth::TokensController < Doorkeeper::TokensController def revoke - unsubscribe_for_token if authorized? && token.accessible? + unsubscribe_for_token if token.present? && authorized? && token.accessible? + super end |