diff options
author | 2023-10-30 19:01:00 +0100 | |
---|---|---|
committer | 2023-10-30 19:01:00 +0100 | |
commit | dd4b0241eaf392d4f2c8c040625c53b6997c5c3b (patch) | |
tree | 44b7109ffea76b542132768eddc516e3b520e348 /internal/processing/search/lookup.go | |
parent | [feature] Customizable media cleaner schedule (#2304) (diff) | |
download | gotosocial-dd4b0241eaf392d4f2c8c040625c53b6997c5c3b.tar.xz |
[bugfix] Allow blocked accounts to show in precise search (#2321)
Diffstat (limited to 'internal/processing/search/lookup.go')
-rw-r--r-- | internal/processing/search/lookup.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/processing/search/lookup.go b/internal/processing/search/lookup.go index 8b48d4514..b6f1eef52 100644 --- a/internal/processing/search/lookup.go +++ b/internal/processing/search/lookup.go @@ -51,6 +51,11 @@ func (p *Processor) Lookup( // accident. const includeInstanceAccounts = true + // Since lookup is always for a specific + // account, it's fine to include a blocked + // account in the results. + const includeBlockedAccounts = true + // Validate query. query = strings.TrimSpace(query) if query == "" { @@ -108,6 +113,7 @@ func (p *Processor) Lookup( requestingAccount, []*gtsmodel.Account{account}, includeInstanceAccounts, + includeBlockedAccounts, ) if errWithCode != nil { return nil, errWithCode |