Change REST API to return empty data for suspended accounts (#14765)

This commit is contained in:
Eugen Rochko
2020-09-11 15:16:29 +02:00
committed by GitHub
parent e6d67f85e2
commit e6b272e5c9
22 changed files with 79 additions and 30 deletions

View File

@ -18,7 +18,7 @@ class Api::V1::Accounts::StatusesController < Api::BaseController
end
def load_statuses
cached_account_statuses
@account.suspended? ? [] : cached_account_statuses
end
def cached_account_statuses