diff options
author | Fire Demon <firedemon@creature.cafe> | 2020-08-06 21:29:58 -0500 |
---|---|---|
committer | Fire Demon <firedemon@creature.cafe> | 2020-08-30 05:45:17 -0500 |
commit | 8b1c0b1e87773aefde810da98bd5dd84274e42b1 (patch) | |
tree | 1c117cd88640836f4a82efa75418ebba76dcf7da /app/controllers | |
parent | 96cfc142c278d206460f4fc843ce8f299d9476e3 (diff) |
[Federation] Allow users to access ActivityPub representation of their own account without a signature
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/accounts_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/accounts_controller.rb b/app/controllers/accounts_controller.rb index ebc472087..e26b6395f 100644 --- a/app/controllers/accounts_controller.rb +++ b/app/controllers/accounts_controller.rb @@ -156,7 +156,7 @@ class AccountsController < ApplicationController end def restrict_fields_to - if signed_request_account.present? && !blocked? + if current_account&.id == @account.id || (signed_request_account.present? && !blocked?) # Return all fields else %i(id type preferred_username inbox public_key endpoints) |