mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
Change REST API to return empty data for suspended accounts (#14765)
This commit is contained in:
@@ -6,7 +6,7 @@ class Api::V1::Accounts::ListsController < Api::BaseController
|
||||
before_action :set_account
|
||||
|
||||
def index
|
||||
@lists = @account.lists.where(account: current_account)
|
||||
@lists = @account.suspended? ? [] : @account.lists.where(account: current_account)
|
||||
render json: @lists, each_serializer: REST::ListSerializer
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user